Browse Source

Improved option parsing template

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7687 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 years ago
parent
commit
233a839676
1 changed files with 2 additions and 0 deletions
  1. 2 0
      source/Options.Mod

+ 2 - 0
source/Options.Mod

@@ -771,6 +771,8 @@ BEGIN
 		IF options.ParseString("--flag -s=Hello -i=99  ", context.error) THEN
 			options.Show(context.out);
 		END;
+	ELSE
+		context.result := Commands.CommandParseError;
 	END;
 END Test;