From 0da351bac710b4a82b0ce6fbd1c644e651f4809e Mon Sep 17 00:00:00 2001 From: KanishkaHalder1771 Date: Mon, 12 May 2025 13:58:44 +0530 Subject: [PATCH] Updates help output for Windows systems --- src/app/cmdoptions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/cmdoptions.cpp b/src/app/cmdoptions.cpp index b65e13fd7..bd9990a86 100644 --- a/src/app/cmdoptions.cpp +++ b/src/app/cmdoptions.cpp @@ -542,7 +542,11 @@ QString makeUsage(const QString &prgName) "'parameter-name', environment variable name is 'QBT_PARAMETER_NAME' (in upper " "case, '-' replaced with '_'). To pass flag values, set the variable to '1' or " "'TRUE'. For example, to disable the splash screen: "), 0) + u'\n' +#if defined(Q_OS_WIN) + + u"set QBT_NO_SPLASH=1\n" + prgName + u'\n' +#else + u"QBT_NO_SPLASH=1 " + prgName + u'\n' +#endif + wrapText(QCoreApplication::translate("CMD Options", "Command line parameters take precedence over environment variables"), 0) + u'\n'; return text;