if I'm using getopt, and I'm checking for a bunch of options, how do I differentiate between one instance of an option and multiple instances?

// Scan the arguments and set flags.
opterr = FALSE;
for (; {
int option = getopt (argc, argv, "nxyd:@:");
if (option == EOF) break;
switch (option) {
case 'd': user_dictionary = optarg;
break;
case 'n': default_dictionary = NULL;
break;
// want to check for -x or -xx
case 'x': STUBPRINTF ("-x\n");
break;
case 'y': yy_flex_debug = TRUE;
break;
case '@': set_debugflags (optarg);
if (strpbrk (optarg, "@y")) yy_flex_debug = TRUE;
break;
default : eprintf ("%: -%c: invalid option\n", optopt);
set_exitstatus (EXIT_FAILURE);
};
};