Skip to content

Commit 7c32e88

Browse files
authored
print cli parse error message to let user know what is missing (#258)
I merged this and will fix build (forbidden apis due to System.out usage) in a followup commit.
1 parent b5b68fb commit 7c32e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/de/thetaphi/forbiddenapis/cli/CliMain.java

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public CliMain(String... args) throws ExitException {
154154
throw new ExitException(EXIT_SUCCESS);
155155
}
156156
} catch (org.apache.commons.cli.ParseException pe) {
157+
System.out.println(pe.getMessage());
157158
printHelp(options);
158159
throw new ExitException(EXIT_ERR_CMDLINE);
159160
}

0 commit comments

Comments
 (0)