]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Just make it -v
authorDale Weiler <killfieldengine@gmail.com>
Mon, 17 Dec 2012 15:11:34 +0000 (15:11 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 17 Dec 2012 15:11:34 +0000 (15:11 +0000)
main.c

diff --git a/main.c b/main.c
index 26321c1ada76b4c542fa30c2c8c4806f05c07585..2043f7c98019be485eb7e902d1fab01d5db7cbfc 100644 (file)
--- 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;