Exit with proper status in case of bad commandline arguments
This commit is contained in:
1 parent
34e23233ce
commit
b3065b6d18
1 file changed
+4
-1
+4
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user