diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-18 01:06:18 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-29 13:23:55 +0200 |
commit | 5b597738ea15983cbc5d8003ccef1ecf9f74750f (patch) | |
tree | 82f7a729cab9d1c5bc88909f6d0dee0dddc1c5b3 /openbsc/src | |
parent | 84136eb62dcf7e3c29ea4424b6bd79c636b7b951 (diff) |
cscn: add cmdline error message
Change-Id: I30c13a604160268756b7413f1733f92300eb241b
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/osmo-cscn/cscn_main.c | 4 |
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; } } |