From e59723059d9013197fc5a22123f196e49b6c21dd Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Fri, 4 Oct 2024 21:21:05 +0200 Subject: [PATCH] Add depcrecation warning for `-m` option To get a client list, JSON RPC should be used instead of `--htmlstatus`/`-m`. Check out https://github.com/jamulussoftware/jamulus/blob/main/docs/JSON-RPC.md for more information on JSON RPC. Related to: https://github.com/jamulussoftware/jamulus/issues/3362 --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 42d17a8dea..6bfcdb18a3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -342,6 +342,8 @@ int main ( int argc, char** argv ) // HTML status file ---------------------------------------------------- if ( GetStringArgument ( argc, argv, i, "-m", "--htmlstatus", strArgument ) ) { + qWarning() << qUtf8Printable ( + QString ( "- The HTML status file option (-m) is deprecated and will be removed soon. Use JSON-RPC instead." ) ); strHTMLStatusFileName = strArgument; qInfo() << qUtf8Printable ( QString ( "- HTML status file name: %1" ).arg ( strHTMLStatusFileName ) ); CommandLineOptions << "--htmlstatus"; @@ -1111,7 +1113,7 @@ QString UsageArguments ( char** argv ) " -F, --fastupdate use 64 samples frame size mode\n" " -l, --log enable logging, set file name\n" " -L, --licence show an agreement window before users can connect\n" - " -m, --htmlstatus enable HTML status file, set file name\n" + " -m, --htmlstatus Deprecated. Use JSON-RPC instead\n" " -o, --serverinfo registration info for this Server. Format:\n" " [name];[city];[country as two-letter ISO country code or Qt5 QLocale ID]\n" " --serverpublicip public IP address for this Server. Needed when\n"