From 71f4da23fbeecd117dc083008440f98ff404d956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=96stlund?= Date: Tue, 5 Dec 2017 12:48:04 +0100 Subject: [PATCH] Fix setCommandLineOptions. - Make setCommandLineOptions return false if it encounters any arguments that are not flags. Belonging to [master]: - OpenModelica/OMCompiler#2066 - OpenModelica/OpenModelica-testsuite#800 --- Compiler/Script/CevalScript.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/Script/CevalScript.mo b/Compiler/Script/CevalScript.mo index 0b6b3553635..4ae3bae79ab 100644 --- a/Compiler/Script/CevalScript.mo +++ b/Compiler/Script/CevalScript.mo @@ -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);