mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +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'},
|
{"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
|
||||||
|
|
Loading…
Reference in a new issue