Skip to content

Commit

Permalink
Merge pull request #3962 from daschuer/parser_warning
Browse files Browse the repository at this point in the history
Silence spam about not supported help-all
  • Loading branch information
uklotzde authored Jun 7, 2021
2 parents c8f148e + 6177d59 commit c6c374b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/cmdlineargs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6c374b

Please sign in to comment.