mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Show help message if positional parameters is present
This commit is contained in:
1 parent
dbdd28fcde
commit
f68aa1908d
1 file changed
+6
-1
@@ -843,7 +843,12 @@ bool RiaApplication::parseArguments()
|
||||
|
||||
bool parseOk = progOpt.parse(cvfqt::Utils::toStringVector(arguments));
|
||||
|
||||
if (!parseOk || progOpt.hasOption("help") || progOpt.hasOption("?"))
|
||||
// If positional parameter functionality is to be supported, the test for existence of positionalParameters must be removed
|
||||
// This is based on a pull request by @andlaus https://github.com/OPM/ResInsight/pull/162
|
||||
if (!parseOk ||
|
||||
progOpt.hasOption("help") ||
|
||||
progOpt.hasOption("?") ||
|
||||
progOpt.positionalParameters().size() > 0)
|
||||
{
|
||||
#if defined(_MSC_VER) && defined(_WIN32)
|
||||
showFormattedTextInMessageBox(m_helpText);
|
||||
|
||||
Reference in new issue
Block a user