From: Dale Weiler Date: Mon, 17 Dec 2012 15:11:34 +0000 (+0000) Subject: Just make it -v X-Git-Tag: 0.1.9~87 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=08302ff32b1a83d738fd3dbdd2af0184ddb46656;p=xonotic%2Fgmqcc.git Just make it -v --- diff --git a/main.c b/main.c index 26321c1..2043f7c 100644 --- a/main.c +++ b/main.c @@ -235,19 +235,6 @@ 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; @@ -301,6 +288,16 @@ static bool options_parse(int argc, char **argv) { 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': opts.pp_only = true; break;