osmo-bsc main: exit on cmdline option error
Change-Id: I7c3432790a77ae9081d2c458ee9f598e435e089d
This commit is contained in:
parent
10983f206b
commit
83bba52b5c
|
@ -173,8 +173,9 @@ static void handle_options(int argc, char **argv)
|
|||
rf_ctrl = optarg;
|
||||
break;
|
||||
default:
|
||||
/* ignore */
|
||||
break;
|
||||
/* catch unknown options *as well as* missing arguments. */
|
||||
fprintf(stderr, "Error in command line options. Exiting.\n");
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue