From 6511c0111d6ed05ffacd29f368ad63f4d4dbfa1a Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Fri, 5 Jan 2024 00:13:39 +0100 Subject: [PATCH] FIX: JKQTPExampleApplication does no longer complain, if additional commmand line options are present (additionally to those declared in JKQTPExampleApplication) --- examples/libexampletools/jkqtpexampleapplication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/libexampletools/jkqtpexampleapplication.cpp b/examples/libexampletools/jkqtpexampleapplication.cpp index 4550bbc0674..ea9b87e7dd1 100644 --- a/examples/libexampletools/jkqtpexampleapplication.cpp +++ b/examples/libexampletools/jkqtpexampleapplication.cpp @@ -71,7 +71,8 @@ void JKQTPExampleApplication::readCmdLine() { QCommandLineOption iterateFunctorStepsSupressInitialOption(QStringList()<<"iteratefunctorsteps_suppressinitial", "iterate over steps defined by addExportStepFunctor() in code."); parser.addOption(iterateFunctorStepsSupressInitialOption); - parser.process(*this); + //parser.process(*this); + parser.parse(arguments()); screenshotDir=QDir(parser.value(outputDirectoryOption)); screenshotBasename=parser.value(basenameOption).split(',');