airlift / airline

Java annotation-based framework for parsing Git like command line structures
Apache License 2.0
847 stars 138 forks source link

fix for issue #22 #23

Open thombergs opened 10 years ago

thombergs commented 10 years ago

I have taken the liberty to try a fix for issue #22 myself :).

Essentially, I added the boolean property showHelpOnError to the @Command annotation with "true" as the default value. If this value is true and the command line parameters cannot be parsed correctly, the exception message is printed out and the Help is shown.

Hope that fits into the theme of things :).

Regards, Tom