mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add support for overriding egrid reader type on command line. Override disables GUI in preferences.
This commit is contained in:
@@ -521,6 +521,13 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
|
||||
setStartDir( cvfqt::Utils::toQString( o.value( 0 ) ) );
|
||||
}
|
||||
|
||||
if ( cvf::Option o = progOpt->option( "egridReader" ) )
|
||||
{
|
||||
CVF_ASSERT( o.valueCount() == 1 );
|
||||
std::string readerName = o.value( 0 ).toLower().toStdString();
|
||||
m_preferences->setGridModelReaderOverride( readerName );
|
||||
}
|
||||
|
||||
if ( cvf::Option o = progOpt->option( "size" ) )
|
||||
{
|
||||
int width = o.safeValue( 0 ).toInt( -1 );
|
||||
|
||||
Reference in New Issue
Block a user