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;
|
rf_ctrl = optarg;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* ignore */
|
/* catch unknown options *as well as* missing arguments. */
|
||||||
break;
|
fprintf(stderr, "Error in command line options. Exiting.\n");
|
||||||
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue