diff options
-rw-r--r-- | src/pcu_main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); |