From 6177d595e52d16362dc08d35f92339a704e75430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 7 Jun 2021 12:48:26 +0200 Subject: [PATCH] Silence spam about not supported help-all --- src/util/cmdlineargs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/cmdlineargs.cpp b/src/util/cmdlineargs.cpp index 9bed044db42..224907ca178 100644 --- a/src/util/cmdlineargs.cpp +++ b/src/util/cmdlineargs.cpp @@ -188,7 +188,11 @@ bool CmdlineArgs::parse(int& argc, char** argv) { qWarning() << parser.errorText(); } - if (parser.isSet(helpOption) || parser.isSet(QStringLiteral("help-all"))) { + if (parser.isSet(helpOption) +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + || parser.isSet(QStringLiteral("help-all")) +#endif + ) { // we need to call process here with an initialized QCoreApplication // otherwise there is no way to print the help-all information QCoreApplication coreApp(argc, argv);