osmo-bsc main: exit on cmdline option error

Change-Id: I7c3432790a77ae9081d2c458ee9f598e435e089d
This commit is contained in:
Neels Hofmeyr 2020-06-12 17:31:01 +02:00 committed by neels
parent 10983f206b
commit 83bba52b5c
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}