mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improved the error text when an unknown option is used. Improved the dialog used to show command line options, and make the text selectable
This commit is contained in:
@@ -1127,6 +1127,8 @@ QString RiaApplication::commandLineParameterHelp()
|
||||
{
|
||||
QString helpText = QString("\n%1 v. %2\n").arg(RI_APPLICATION_NAME).arg(RiaApplication::getVersionStringApp(false));
|
||||
helpText += "Copyright Equinor ASA, Ceetron Solution AS, Ceetron AS\n\n";
|
||||
helpText += m_commandLineHelpText;
|
||||
|
||||
return helpText;
|
||||
}
|
||||
|
||||
@@ -1297,6 +1299,14 @@ void RiaApplication::setStartDir(const QString& startDir)
|
||||
m_startupDefaultDirectory = startDir;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaApplication::setCommandLineHelpText(const QString& commandLineHelpText)
|
||||
{
|
||||
m_commandLineHelpText = commandLineHelpText;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user