mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename command line argument to --server
This commit is contained in:
@@ -1379,7 +1379,7 @@ bool RiaApplication::initializeGrpcServer(const cvf::ProgramOptions& progOpt)
|
||||
|
||||
int defaultPortNumber = m_preferences->defaultGrpcPortNumber();
|
||||
bool fixedPort = false;
|
||||
if (cvf::Option o = progOpt.option("grpcserver"))
|
||||
if (cvf::Option o = progOpt.option("server"))
|
||||
{
|
||||
if (o.valueCount() == 1)
|
||||
{
|
||||
|
||||
@@ -68,8 +68,8 @@ bool RiaArgumentParser::parseArguments(cvf::ProgramOptions* progOpt)
|
||||
"If <filename> has extension .SMSPEC, import the summary file (does not open the corresponding grid file)",
|
||||
cvf::ProgramOptions::MULTI_VALUE);
|
||||
progOpt->registerOption("size", "<width> <height>", "Set size of the main application window.", cvf::ProgramOptions::MULTI_VALUE);
|
||||
progOpt->registerOption("console", "", "Run as a console application without Graphics");
|
||||
progOpt->registerOption("grpcserver", "[<portnumber>]", "Run as a GRPC server. Default port is 50051", cvf::ProgramOptions::SINGLE_VALUE);
|
||||
progOpt->registerOption("console", "", "Launch as a console application without graphics");
|
||||
progOpt->registerOption("server", "[<portnumber>]", "Launch as a GRPC server. Default port is 50051", cvf::ProgramOptions::SINGLE_VALUE);
|
||||
progOpt->registerOption("startdir", "<folder>", "Set startup directory.\n", cvf::ProgramOptions::SINGLE_VALUE);
|
||||
|
||||
progOpt->registerOption("commandFile", "<commandfile>", "Execute the command file.", cvf::ProgramOptions::SINGLE_VALUE);
|
||||
|
||||
@@ -64,7 +64,7 @@ class Instance:
|
||||
|
||||
print('Port ' + str(port))
|
||||
print('Trying to launch', resInsightExecutable)
|
||||
parameters = ["ResInsight", "--grpcserver", str(port)]
|
||||
parameters = ["ResInsight", "--server", str(port)]
|
||||
if console:
|
||||
print("Launching as console app")
|
||||
parameters.append("--console")
|
||||
|
||||
Reference in New Issue
Block a user