diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-15 03:53:18 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-15 03:53:18 +0530 |
commit | b3065b6d189578e31d6f33567b4bfcd5efb165a9 (patch) | |
tree | 1184daafbf9705f5f4d8000d449e26553f682583 /src/main.c | |
parent | 34e23233ce2bdf723c6b716e3b11c15e4dd34786 (diff) |
Exit with proper status in case of bad commandline arguments
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } } } |