-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Revert " imp: Add exitcode::USAGE exit code as suggested in #1327" #1653
Conversation
We should also document this exit codes somewhere. Maybe it worth looking at other UNIX apps? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please actually fix the issue also instead of just reverting the PR. I have made the necessary suggestions. Once you apply them, I will approve and merge the PR.
And it doesn't define 64 as "usage" either. yes, it tries to delegate to Can somebody supply an example of a widely received CLI app that actually exits with 64 on usage? |
@BurntSushi What do you think? |
I would probably go with an exit code of |
74055a2
to
c5eb084
Compare
Canceled |
bors r+ |
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
bors r=me |
Build succeeded
|
@CreepySkeleton r=me doesn't work really well, that's r+ |
PR clap-rs#1637 switched clap to report `64` on errors and then clap-rs#1653 switch it to 2, but both missed a case. This also documents the reason why inline since I had to go and dig through the history to re-discover the motivation.
PR clap-rs#1637 switched clap to report `64` on errors and then clap-rs#1653 switch it to `2`, but both missed a case. This also documents the reason why inline since I had to go and dig through the history to re-discover the motivation.
PR clap-rs#1637 switched clap to report `64` on errors and then clap-rs#1653 switch it to `2`, but both missed a case. This also documents the reason why inline since I had to go and dig through the history to re-discover the motivation.
PR clap-rs#1637 switched clap to report `64` on errors and then clap-rs#1653 switch it to `2`, but both missed a case. This also documents the reason why inline since I had to go and dig through the history to re-discover the motivation.
Reverts #1637