Don't print stack trace on unrecognized option

Issue #34 new
Jesper Öqvist created an issue

Invoking JastAddJ with the option --version produces the following output:

Exception in thread "main" java.lang.Error: Command line argument error: option --version is not defined
        at AST.Options.addOptions(
        at AST.Frontend.processArgs(
        at AST.Frontend.process(
        at org.jastadd.jastaddj.JavaCompiler.compile(
        at org.jastadd.jastaddj.JavaCompiler.main(

We should not print stack traces for such simple errors.

Comments (0)

  1. Log in to comment