Do not mention deprecated -M / --mncc-sock-path options

Change-Id: I34387f561446aa5bf5db5264f0aca6bf6469d0e5
This commit is contained in:
Vadim Yanitskiy 2021-11-12 20:09:04 +03:00
parent 3caede7498
commit 1ec8e54317
2 changed files with 4 additions and 8 deletions

View File

@ -5,7 +5,7 @@ arguments:
=== SYNOPSIS === SYNOPSIS
*osmo-msc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'DATABASE'] [-M 'SOCKETPATH'] *osmo-msc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'DATABASE']
=== OPTIONS === OPTIONS
@ -37,11 +37,6 @@ arguments:
<<logging>> for more information. <<logging>> for more information.
*-l, --database 'DATABASE'*:: *-l, --database 'DATABASE'*::
Specify the file name of the SQLite3 database to use as SMS storage Specify the file name of the SQLite3 database to use as SMS storage
*-M, --mncc-sock-path*::
Enable the MNCC socket for an external MNCC handler. See
<<mncc>> for further information.
*-m, --mncc-sock*::
Same as option -M (deprecated).
=== Multiple instances === Multiple instances

View File

@ -131,7 +131,6 @@ static void print_help()
printf(" -T --timestamp Prefix every log line with a timestamp.\n"); printf(" -T --timestamp Prefix every log line with a timestamp.\n");
printf(" -V --version Print the version of OsmoMSC.\n"); printf(" -V --version Print the version of OsmoMSC.\n");
printf(" -e --log-level number Set a global loglevel.\n"); printf(" -e --log-level number Set a global loglevel.\n");
printf(" -M --mncc-sock-path PATH Disable built-in MNCC handler and offer socket.\n");
printf("\nVTY reference generation:\n"); printf("\nVTY reference generation:\n");
printf(" --vty-ref-mode MODE VTY reference generation mode (e.g. 'expert').\n"); printf(" --vty-ref-mode MODE VTY reference generation mode (e.g. 'expert').\n");
@ -178,7 +177,7 @@ static void handle_options(int argc, char **argv)
{"timestamp", 0, 0, 'T'}, {"timestamp", 0, 0, 'T'},
{"version", 0, 0, 'V' }, {"version", 0, 0, 'V' },
{"log-level", 1, 0, 'e'}, {"log-level", 1, 0, 'e'},
{"mncc-sock-path", 1, 0, 'M'}, {"mncc-sock-path", 1, 0, 'M'}, /* deprecated */
{"no-dbcounter", 0, 0, 'C'}, /* deprecated */ {"no-dbcounter", 0, 0, 'C'}, /* deprecated */
{"vty-ref-mode", 1, &long_option, 1}, {"vty-ref-mode", 1, &long_option, 1},
{"vty-ref-xml", 0, &long_option, 2}, {"vty-ref-xml", 0, &long_option, 2},
@ -221,6 +220,8 @@ static void handle_options(int argc, char **argv)
break; break;
case 'M': case 'M':
msc_cmdline_config.mncc_sock_path = optarg; msc_cmdline_config.mncc_sock_path = optarg;
fprintf(stderr, "Command line argument '-%c' is deprecated, use VTY "
"parameter 'msc' / 'mncc external %s' instead.\n", c, optarg);
break; break;
case 'C': case 'C':
fprintf(stderr, "-C is deprecated and does nothing."); fprintf(stderr, "-C is deprecated and does nothing.");