mirror of https://gerrit.osmocom.org/osmo-sysmon
exit(2) on unsupported positional arguments on command line
Change-Id: I32f9565c649a149638878a7283ddd8407ddff1ed
This commit is contained in:
parent
ebbfbbdbc7
commit
8984bea461
|
@ -197,6 +197,11 @@ static void handle_options(int argc, char **argv)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (argc > optind) {
|
||||
fprintf(stderr, "Unsupported positional arguments on command line\n");
|
||||
exit(2);
|
||||
}
|
||||
}
|
||||
|
||||
static struct osmo_timer_list print_timer;
|
||||
|
|
Loading…
Reference in New Issue