Skip to content

Commit

Permalink
Fix setCommandLineOptions.
Browse files Browse the repository at this point in the history
- Make setCommandLineOptions return false if it encounters any
  arguments that are not flags.

Belonging to [master]:
  - OpenModelica/OMCompiler#2066
  - OpenModelica/OpenModelica-testsuite#800
  • Loading branch information
perost authored and OpenModelica-Hudson committed Dec 5, 2017
1 parent 5148fef commit 71f4da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Script/CevalScript.mo
Expand Up @@ -936,7 +936,7 @@ algorithm
case (_,_,"setCommandLineOptions",{Values.STRING(str)},st,_)
equation
args = System.strtok(str, " ");
_ = Flags.readArgs(args);
{} = Flags.readArgs(args);
then
(FCore.emptyCache(),Values.BOOL(true),st);

Expand Down

0 comments on commit 71f4da2

Please sign in to comment.