-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
built-in "-help" usage info #1
Comments
Yes, either will work. Given this example:
if I run
It's important to note that this default behavior ignores that you didn't include arguments. If you were to have different error handling like this example:
It will still print the help message but also throw an exception, which will result in a non-zero exit code
Any other questions? Thanks, I will add this to the documentation. |
I think you can wrap a try/catch in the |
Added some additional documentation around error handling here: 7ca5f38 |
Do you have built-in usage info when program use
-help
or--help
?The text was updated successfully, but these errors were encountered: