From b3065b6d189578e31d6f33567b4bfcd5efb165a9 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Tue, 15 Sep 2009 03:53:18 +0530 Subject: Exit with proper status in case of bad commandline arguments --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 0e0478c..1a84d38 100644 --- a/src/main.c +++ b/src/main.c @@ -198,9 +198,12 @@ process_cmdline (int argc, char **argv) break; case 'h': - default: display_usage (); exit (EX_OK); + + default: + display_usage (); + exit (EX_USAGE); } } } -- cgit v1.2.3