exit code 1 if parameters are wrong

for use in scripts, it's not convenient to get an exit code 0 on
failure.
This commit is contained in:
Leo Wandersleb 2020-06-16 00:53:49 -04:00 committed by Connor Tumbleson
parent ecbcfb437e
commit 546577df6a

View File

@ -54,6 +54,7 @@ public class Main {
} catch (ParseException ex) {
System.err.println(ex.getMessage());
usage();
System.exit(1);
return;
}