mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Added -which/-version
This commit is contained in:
parent
ac18d58ffc
commit
ae960efff4
1 changed files with 13 additions and 0 deletions
13
main.c
13
main.c
|
@ -235,6 +235,19 @@ static bool options_parse(int argc, char **argv) {
|
|||
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) */
|
||||
if (!strcmp(argv[0]+1, "show-defaults")) {
|
||||
size_t itr;
|
||||
|
|
Loading…
Reference in a new issue