Skip to content
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

Closed
TimBednarzyk opened this issue Mar 14, 2017 · 1 comment
Closed

Add Arg::hide_default_value() #902

TimBednarzyk opened this issue Mar 14, 2017 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc...

Comments

@TimBednarzyk
Copy link

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 calling arg.hide_possible_values(true) on an argument that has multiple possible values.

@kbknapp
Copy link
Member

kbknapp commented Mar 15, 2017

Thanks for the suggestion, I agree it's an inconsistency that's easy to fix!

@kbknapp 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
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc...
Projects
None yet
Development

No branches or pull requests

2 participants