-
Notifications
You must be signed in to change notification settings - Fork 433
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
Exit code control from built-in handlers #251
Labels
Milestone
Comments
Note to self: look at http://stefanbirkner.github.io/system-rules/#ExpectedSystemExit to help with testing |
remkop
added a commit
that referenced
this issue
Mar 6, 2018
…rules to facilitate testing exit codes and use of stdout/stderr streams
remkop
added a commit
that referenced
this issue
Mar 6, 2018
Text for release notes:
|
remkop
added a commit
that referenced
this issue
Mar 7, 2018
remkop
added a commit
that referenced
this issue
Mar 8, 2018
remkop
added a commit
that referenced
this issue
Mar 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commonly, successful execution of a command should result in a zero exit code and unsuccessful invocation should result in a non-zero exit code.
The
java
executable does not return a non-zero exit code if the application exits because of an uncaught throwable. It’s up to the application to callSystem.exit(int)
if control over the exit code is desired.Picocli has a “success” path and three separate “failure” paths:
Consider providing API to let applications control the exit code for all of the above.
See also discussion under #218 for API ideas on how to accomplish this.
The text was updated successfully, but these errors were encountered: