mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix some getopt misconfigurations: missed args markers and "-" isn't needed
because we don't care about option interleave
This commit is contained in:
parent
df96985118
commit
4a69ce1877
1 changed files with 5 additions and 6 deletions
|
@ -50,23 +50,22 @@ static struct option const long_options[] = {
|
|||
{"verbose", no_argument, 0, 'v'},
|
||||
{"help", no_argument, 0, 'h'},
|
||||
{"version", no_argument, 0, 'V'},
|
||||
{"threads", no_argument, 0, 't'},
|
||||
{"threads", required_argument, 0, 't'},
|
||||
{"minimal", no_argument, 0, 'm'},
|
||||
{"level", no_argument, 0, 'l'},
|
||||
{"level", required_argument, 0, 'l'},
|
||||
{"file", required_argument, 0, 'f'},
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
static const char *short_options =
|
||||
"-" // magic option parsing mode doohicky (must come first)
|
||||
"q" // quiet
|
||||
"v" // verbose
|
||||
"h" // help
|
||||
"V" // version
|
||||
"t" // threads
|
||||
"t:" // threads
|
||||
"m" // minimal vis
|
||||
"l" // level
|
||||
"f" // file
|
||||
"l:" // level
|
||||
"f:" // file
|
||||
;
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue