Skip to content

Commit

Permalink
Merge pull request #45009 from gsmet/cli-errors
Browse files Browse the repository at this point in the history
Hint about -e/--errors when CLI errors out
  • Loading branch information
gastaldi authored Dec 10, 2024
2 parents aa5baa7 + ada5bf9 commit f74f7c2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ public int handleCommandException(Exception ex, String message) {
CommandLine.UnmatchedArgumentException.printSuggestions((CommandLine.ParameterException) ex, out());
}
error(message);

if (!isShowErrors()) {
info("\nAdd the -e/--errors option to get more information about the error. Add the --verbose option to get even more details.");
}

return cmd.getExitCodeExceptionMapper() != null ? cmd.getExitCodeExceptionMapper().getExitCode(ex)
: mixee.exitCodeOnInvalidInput();
}
Expand Down

0 comments on commit f74f7c2

Please sign in to comment.