aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-11-12 20:28:08 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-11-12 20:28:08 +0300
commitaefbf7a829d12af4dad09b902038f4c5fe0d5b55 (patch)
tree97d2c06c6498408b0ee62895dc28d45b440da67d
parent1ec8e54317cadd1d73765f01789e54240bfcfdbe (diff)
Do not mention deprecated -l / --database options
-rw-r--r--doc/manuals/chapters/running.adoc4
-rw-r--r--src/osmo-msc/msc_main.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/doc/manuals/chapters/running.adoc b/doc/manuals/chapters/running.adoc
index 988b84dbe..86653954e 100644
--- a/doc/manuals/chapters/running.adoc
+++ b/doc/manuals/chapters/running.adoc
@@ -5,7 +5,7 @@ arguments:
=== SYNOPSIS
-*osmo-msc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'DATABASE']
+*osmo-msc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL']
=== OPTIONS
@@ -35,8 +35,6 @@ arguments:
Set the global log level for logging to stderr. This has mostly
been deprecated by VTY based logging configuration, see
<<logging>> for more information.
-*-l, --database 'DATABASE'*::
- Specify the file name of the SQLite3 database to use as SMS storage
=== Multiple instances
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index 07d76ddaa..9657c716d 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -127,7 +127,6 @@ static void print_help()
printf(" -D --daemonize Fork the process into a background daemon.\n");
printf(" -c --config-file filename The config file to use.\n");
printf(" -s --disable-color\n");
- printf(" -l --database db-name The database to use.\n");
printf(" -T --timestamp Prefix every log line with a timestamp.\n");
printf(" -V --version Print the version of OsmoMSC.\n");
printf(" -e --log-level number Set a global loglevel.\n");
@@ -173,7 +172,7 @@ static void handle_options(int argc, char **argv)
{"daemonize", 0, 0, 'D'},
{"config-file", 1, 0, 'c'},
{"disable-color", 0, 0, 's'},
- {"database", 1, 0, 'l'},
+ {"database", 1, 0, 'l'}, /* deprecated */
{"timestamp", 0, 0, 'T'},
{"version", 0, 0, 'V' },
{"log-level", 1, 0, 'e'},
@@ -208,6 +207,8 @@ static void handle_options(int argc, char **argv)
break;
case 'l':
msc_cmdline_config.database_name = optarg;
+ fprintf(stderr, "Command line argument '-%c' is deprecated, use VTY "
+ "parameter 'msc' / 'sms-database %s' instead.\n", c, optarg);
break;
case 'c':
msc_cmdline_config.config_file = optarg;