[core] Stop printing CLI usage text when exiting due to invalid parameters #3427
Labels
an:enhancement
An improvement on existing features / rules
in:cli
Affects the PMD Command Line Interface
Milestone
Is your feature request related to a problem? Please describe.
When making a mistake in CLI parameters a wall of text is printed and the actual error message is completely drowned out. Also this is a real problem with the
-help
option. Because of #3424,pmd --help
is actually incorrect (pmd -help
should be used instead). But since the usage text is printed, we have the impression that it actually worked, only to be disappointed that this wall of text doesn't mention the CLI syntax. It comes off as buggy and unhelpful.Describe the solution you'd like Just print the error message, followed by the line
Run with --help to get more information
or something like that. Note that--help
doesn't exist yet (#3424)The text was updated successfully, but these errors were encountered: