Replies: 1 comment 1 reply
-
$ cargo asm --version
Version: 0.2.20
$ echo $?
0 It should produce 0 if application sets version number in some way. It can produce 1 if version is not set and parse fails. You can specify a version like so: https://docs.rs/bpaf/0.9.5/bpaf/struct.OptionParser.html#method.version |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While publishing a CLI on Homebrew, it was pointed out that the our CLI exits with code
1
when running with only--version
.I believe this behavior to be caused by this:
bpaf/src/info.rs
Line 285 in 8a948b1
Is there a reason we don't return exit code
0
in such a case?Thanks for your insights.
Beta Was this translation helpful? Give feedback.
All reactions