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