Skip to content

Commit 88c6244

Browse files
committed
[ModelicaSystem] update setCommandLineOptions()
1 parent a6cc8f2 commit 88c6244

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OMPython/ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ def __init__(
468468
if build:
469469
self.buildModel(variableFilter)
470470

471-
def setCommandLineOptions(self, commandLineOptions: Optional[str] = None):
472-
# set commandLineOptions if provided by users
473-
if commandLineOptions is None:
474-
return
471+
def setCommandLineOptions(self, commandLineOptions: str):
472+
"""
473+
Set the provided command line option via OMC setCommandLineOptions().
474+
"""
475475
exp = f'setCommandLineOptions("{commandLineOptions}")'
476476
self.sendExpression(exp)
477477

0 commit comments

Comments
 (0)