Skip to content

Commit

Permalink
kernel: now reject extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Nov 25, 2023
1 parent d95762f commit 625831f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ error_t parse_ker_opt(int key, char *arg, struct argp_state *state)
case 'o':
arguments->output_filename = arg;
break;
case ARGP_KEY_ARG:
fprintf(stderr, "ERROR: invalid argument ``%s''\n", arg);
exit(1);
case ARGP_KEY_INIT:
arguments->left = 0;
arguments->output_filename = NULL;
Expand Down

0 comments on commit 625831f

Please sign in to comment.