Fix return code if arguments can not be parsed

parent 4f3eaba7
Pipeline #143251 passed with stages
in 33 minutes and 19 seconds
......@@ -30,7 +30,7 @@
<groupId>de.monticore.lang.monticar</groupId>
<artifactId>embedded-montiarc-math-generator</artifactId>
<version>0.1.10</version>
<version>0.1.11-SNAPSHOT</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
......
......@@ -145,6 +145,9 @@ public final class GeneratorCppCli {
CommandLine cliArgs = parseArgs(options, parser, args);
if (cliArgs != null) {
runGenerator(cliArgs);
}else{
Log.error("Error parsing cli arguments!");
System.exit(1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment