Check that there are no positional arguments
This commit is contained in:
parent
244bb719b1
commit
4c654cd621
4
main.c
4
main.c
|
@ -84,6 +84,10 @@ main(int argc, char ** argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (optind < argc) {
|
||||||
|
fprintf(stderr, "Unexpected positional argument at position %d: %s\n", optind, argv[optind]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
ProcessingState state = (ProcessingState) {
|
ProcessingState state = (ProcessingState) {
|
||||||
.wait_delay = NULL,
|
.wait_delay = NULL,
|
||||||
|
|
Loading…
Reference in New Issue