Add support for overriding egrid reader type on command line. Override disables GUI in preferences.

This commit is contained in:
Jon Jenssen
2024-05-27 14:41:24 +02:00
committed by jonjenssen
parent 1b93347aea
commit 9858d09a33
6 changed files with 60 additions and 2 deletions

View File

@@ -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 );