From: John Hodge Date: Thu, 19 Mar 2015 04:37:56 +0000 (+0800) Subject: Client - Quit when --help/-h is passed X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=07091048fda15c78abc221ecf6664c74b4ce054e;p=tpg%2Fopendispense2.git Client - Quit when --help/-h is passed --- diff --git a/src/client/main.c b/src/client/main.c index 3938bea..ede9290 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -855,7 +855,7 @@ int ParseArguments(int argc, char *argv[]) case 'h': case '?': ShowUsage(); - return 0; + exit(0); case 'c': if( i > 2 && strcmp(argv[i-1], "type") == 0 ) @@ -950,7 +950,7 @@ int ParseArguments(int argc, char *argv[]) case '-': if( strcmp(argv[i], "--help") == 0 ) { ShowUsage(); - return 0; + exit(0); } else if( strcmp(argv[i], "--dry-run") == 0 ) { gbDryRun = 1;