Exit with proper status in case of bad commandline arguments
This commit is contained in:
parent
34e23233ce
commit
b3065b6d18
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user