Rename command line argument to --server

This commit is contained in:
Magne Sjaastad
2019-08-22 14:41:51 +02:00
parent 4dcd7663c9
commit a86ae13bb7
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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