aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-18 01:06:18 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-29 13:23:55 +0200
commit5b597738ea15983cbc5d8003ccef1ecf9f74750f (patch)
tree82f7a729cab9d1c5bc88909f6d0dee0dddc1c5b3
parent84136eb62dcf7e3c29ea4424b6bd79c636b7b951 (diff)
cscn: add cmdline error message
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index d42dbfc42..694b5b9fe 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_main.c
@@ -227,7 +227,9 @@ static void handle_options(int argc, char **argv)
exit(0);
break;
default:
- /* ignore */
+ /* catch unknown options *as well as* missing arguments. */
+ fprintf(stderr, "Error in command line options. Exiting.\n");
+ exit(-1);
break;
}
}