From 08302ff32b1a83d738fd3dbdd2af0184ddb46656 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Mon, 17 Dec 2012 15:11:34 +0000 Subject: [PATCH] Just make it -v --- main.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) 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; -- 2.39.2