charon-cmd: Stop processing options if an argument is missing or an option not recognized

This commit is contained in:
Tobias Brunner 2013-05-07 14:53:27 +02:00
parent 410abbd35f
commit efb4cb0bf9

View File

@ -282,6 +282,9 @@ static void handle_arguments(int argc, char *argv[])
{
continue;
}
/* fall-through */
case '?':
/* missing argument, unrecognized option */
usage(stderr, NULL, argv[0]);
exit(1);
}