Skip to content

Commit f8c8c64

Browse files
authored
Handle multiple simulation options (#956)
1 parent e26d6e0 commit f8c8c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OMSimulatorServer/OMSimulatorServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _main():
5959
parser.add_argument('--endpoint-rep', default=None, help='define the endpoint for the req/rep communication')
6060
parser.add_argument('--model', default=None, required=True, help='define the model to simulate')
6161
parser.add_argument('--logLevel', default=0, type=int, help='defines the logging level')
62-
parser.add_argument('--option', default='', help='defines optional command line options')
62+
parser.add_argument('--option', default='', nargs='+', help='defines optional command line options')
6363
parser.add_argument('--result-file', default=None, help='defines whether and if so to which file the results will be written')
6464
parser.add_argument('--temp', default='./temp/', help='defines the temp directory')
6565
args = parser.parse_args()
@@ -86,7 +86,7 @@ def _main():
8686
else:
8787
socket_sub = None
8888

89-
oms.setCommandLineOption(args.option)
89+
oms.setCommandLineOption(' '.join(list(map((lambda x: x[1:-1]), args.option))))
9090
oms.setLoggingLevel(args.logLevel)
9191
oms.setTempDirectory(args.temp)
9292
model = oms.importFile(args.model)

0 commit comments

Comments
 (0)