-
-
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
Add Arg::hide_default_value() #902
Labels
A-help
Area: documentation, including docs.rs, readme, examples, etc...
Comments
Thanks for the suggestion, I agree it's an inconsistency that's easy to fix! |
kbknapp
added
C: args
A-help
Area: documentation, including docs.rs, readme, examples, etc...
labels
Mar 15, 2017
homu
added a commit
that referenced
this issue
Mar 22, 2017
Add Arg::hide_default_value() Adds a new method, `Arg::hide_default_value()`, to hide the default argument from the help string. Fixes #902. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/kbknapp/clap-rs/913) <!-- Reviewable:end -->
homu
added a commit
that referenced
this issue
Mar 22, 2017
Add Arg::hide_default_value() Adds a new method, `Arg::hide_default_value()`, to hide the default argument from the help string. Fixes #902. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/kbknapp/clap-rs/913) <!-- Reviewable:end -->
kbknapp
pushed a commit
that referenced
this issue
Mar 23, 2017
…of an argument from the help string Adds a new method, `Arg::hide_default_value`, which allows for specifying whether the default value of the argument should be hidden from the help string. Closes #902
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There should be a way to hide the output of
[default: x]
on an option that has a default value, just like how you can hide the output of[values: x, y, z]
by callingarg.hide_possible_values(true)
on an argument that has multiple possible values.The text was updated successfully, but these errors were encountered: