From e5a093986b0b29523afdaf1149daf61748b290ba Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 17 Jan 2013 12:28:16 +0100 Subject: pcu_main: Add '-V' to obtain the (compile) version of osmo-pcu --- src/pcu_main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index a9e224f9..f135cfd6 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -69,10 +69,11 @@ static void handle_options(int argc, char **argv) { "config-file", 1, 0, 'c' }, { "mcc", 1, 0, 'm' }, { "mnc", 1, 0, 'n' }, + { "version", 0, 0, 'V' }, { 0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "hc:m:n:", + c = getopt_long(argc, argv, "hc:m:n:V", long_options, &option_idx); if (c == -1) break; @@ -92,6 +93,10 @@ static void handle_options(int argc, char **argv) case 'n': spoof_mnc = atoi(optarg); break; + case 'V': + print_version(1); + exit(0); + break; default: fprintf(stderr, "Unknown option '%c'\n", c); exit(0); -- cgit v1.2.3