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

Show used values in "smart usage" #791

Open
kbknapp opened this issue Dec 28, 2016 · 1 comment
Open

Show used values in "smart usage" #791

kbknapp opened this issue Dec 28, 2016 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations E-hard Call for participation: Experience needed to fix: Hard / a lot

Comments

@kbknapp
Copy link
Member

kbknapp commented Dec 28, 2016

It would be nice to show actual values in the context sensitive usage statements:

i.e. current clap

$ prog --option val other.conf -a
error: -a isn't valid

usage:
    prog --option <some> <file>

What I'd like to see

$ prog --option val other.conf -a
error: -a isn't valid

usage:
    prog --option val other.conf
@kbknapp kbknapp added C: errors C-enhancement Category: Raise on the bar on expectations labels Dec 28, 2016
@kbknapp kbknapp modified the milestone: 2.20.0 Dec 28, 2016
@kbknapp
Copy link
Member Author

kbknapp commented Jan 4, 2017

I ran into some snags while implementing this, values should be in the same order as they were originally placed in, but this requires some additional work. I'll have to play with it some more.

@kbknapp kbknapp added E-hard Call for participation: Experience needed to fix: Hard / a lot and removed D: intermediate labels Jan 4, 2017
@kbknapp kbknapp added W: 3.x and removed W: 2.x labels Jul 22, 2018
@pksunkara pksunkara modified the milestones: 3.0.0-alpha.3, 3.1 Feb 5, 2020
@pksunkara pksunkara removed the W: 3.x label Aug 13, 2021
@epage epage added A-help Area: documentation, including docs.rs, readme, examples, etc... and removed C: errors labels Dec 8, 2021
@epage epage removed this from the 3.1 milestone Dec 9, 2021
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... C-enhancement Category: Raise on the bar on expectations E-hard Call for participation: Experience needed to fix: Hard / a lot
Projects
None yet
Development

No branches or pull requests

3 participants