fix some getopt misconfigurations: missed args markers and "-" isn't needed

because we don't care about option interleave
This commit is contained in:
Bill Currie 2002-08-26 16:15:19 +00:00
parent df96985118
commit 4a69ce1877

View file

@ -50,23 +50,22 @@ static struct option const long_options[] = {
{"verbose", no_argument, 0, 'v'}, {"verbose", no_argument, 0, 'v'},
{"help", no_argument, 0, 'h'}, {"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'}, {"version", no_argument, 0, 'V'},
{"threads", no_argument, 0, 't'}, {"threads", required_argument, 0, 't'},
{"minimal", no_argument, 0, 'm'}, {"minimal", no_argument, 0, 'm'},
{"level", no_argument, 0, 'l'}, {"level", required_argument, 0, 'l'},
{"file", required_argument, 0, 'f'}, {"file", required_argument, 0, 'f'},
{NULL, 0, NULL, 0} {NULL, 0, NULL, 0}
}; };
static const char *short_options = static const char *short_options =
"-" // magic option parsing mode doohicky (must come first)
"q" // quiet "q" // quiet
"v" // verbose "v" // verbose
"h" // help "h" // help
"V" // version "V" // version
"t" // threads "t:" // threads
"m" // minimal vis "m" // minimal vis
"l" // level "l:" // level
"f" // file "f:" // file
; ;
void void