-
Notifications
You must be signed in to change notification settings - Fork 905
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
Help should exit zero if called with the help switch, otherwise non-zero on bad commands #473
Comments
ferventcoder
changed the title
Help command should exit zero if called with the help switch, otherwise non-zero on bad commands
Help should exit zero if called with the help switch, otherwise non-zero on bad commands
Oct 28, 2015
I will try to fix it. |
Cubix651
added a commit
to Cubix651/choco
that referenced
this issue
Jan 14, 2017
There are two cases when choco shows help message: when it is explicitly requested or when parsing fails. In first scenario choco should return 0 exit code, in second - non-zero value. This commit introduces new property UnsuccessfulParsing in ChocolateyConfiguration and using this property it fixes bug with incorrect exit code.
ferventcoder
pushed a commit
that referenced
this issue
Mar 19, 2017
There are two cases when choco shows help message: when it is explicitly requested or when parsing fails. In first scenario choco should return 0 exit code, in second - non-zero value. This commit introduces new property UnsuccessfulParsing in ChocolateyConfiguration and using this property it fixes bug with incorrect exit code.
ferventcoder
added a commit
that referenced
this issue
Mar 19, 2017
* pr1137: (GH-473) Correct exit code when help is requested
ferventcoder
added a commit
that referenced
this issue
Mar 19, 2017
* stable: (GH-473) Correct exit code when help is requested
This will be released with 0.10.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also related to #468
Badly passed commands display the help menu and exit with non-zero, but also explicitly calling for help will exit non-zero.
The text was updated successfully, but these errors were encountered: