Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Show used values in "smart usage" #67

Open
epage opened this issue Dec 6, 2021 · 1 comment
Open

Show used values in "smart usage" #67

epage opened this issue Dec 6, 2021 · 1 comment

Comments

@epage
Copy link
Owner

epage commented Dec 6, 2021

Issue by kbknapp
Wednesday Dec 28, 2016 at 22:59 GMT
Originally opened as clap-rs/clap#791


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
@epage
Copy link
Owner Author

epage commented Dec 6, 2021

Comment by kbknapp
Wednesday Jan 04, 2017 at 04:05 GMT


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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant