charon-cmd: Stop processing options if an argument is missing or an option not recognized
This commit is contained in:
1 parent
410abbd35f
commit
efb4cb0bf9
1 file changed
+3
@@ -282,6 +282,9 @@ static void handle_arguments(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/* fall-through */
|
||||||
|
case '?':
|
||||||
|
/* missing argument, unrecognized option */
|
||||||
usage(stderr, NULL, argv[0]);
|
usage(stderr, NULL, argv[0]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user