We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c32e88 commit 6f6ada3Copy full SHA for 6f6ada3
src/main/java/de/thetaphi/forbiddenapis/cli/CliMain.java
@@ -154,7 +154,9 @@ public CliMain(String... args) throws ExitException {
154
throw new ExitException(EXIT_SUCCESS);
155
}
156
} catch (org.apache.commons.cli.ParseException pe) {
157
- System.out.println(pe.getMessage());
+ if (args.length > 0) {
158
+ StdIoLogger.INSTANCE.error(pe.getMessage());
159
+ }
160
printHelp(options);
161
throw new ExitException(EXIT_ERR_CMDLINE);
162
0 commit comments