mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Just make it -v
This commit is contained in:
parent
ae960efff4
commit
08302ff32b
1 changed files with 10 additions and 13 deletions
23
main.c
23
main.c
|
@ -235,19 +235,6 @@ static bool options_parse(int argc, char **argv) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(argv[0]+1, "which") ||
|
|
||||||
!strcmp(argv[0]+1, "version")) {
|
|
||||||
con_out("GMQCC %d.%d.%d Built %s %s\n",
|
|
||||||
GMQCC_VERSION_MINOR,
|
|
||||||
GMQCC_VERSION_MAJOR,
|
|
||||||
GMQCC_VERSION_PATCH,
|
|
||||||
__DATE__,
|
|
||||||
__TIME__
|
|
||||||
);
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* show defaults (like pathscale) */
|
/* show defaults (like pathscale) */
|
||||||
if (!strcmp(argv[0]+1, "show-defaults")) {
|
if (!strcmp(argv[0]+1, "show-defaults")) {
|
||||||
size_t itr;
|
size_t itr;
|
||||||
|
@ -301,6 +288,16 @@ static bool options_parse(int argc, char **argv) {
|
||||||
exit(0);
|
exit(0);
|
||||||
/* break; never reached because of exit(0) */
|
/* break; never reached because of exit(0) */
|
||||||
|
|
||||||
|
case 'v':
|
||||||
|
con_out("GMQCC %d.%d.%d Built %s %s\n",
|
||||||
|
GMQCC_VERSION_MINOR,
|
||||||
|
GMQCC_VERSION_MAJOR,
|
||||||
|
GMQCC_VERSION_PATCH,
|
||||||
|
__DATE__,
|
||||||
|
__TIME__
|
||||||
|
);
|
||||||
|
exit(0);
|
||||||
|
|
||||||
case 'E':
|
case 'E':
|
||||||
opts.pp_only = true;
|
opts.pp_only = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue