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

feat(error): Show possible values when none are supplied #3394

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

epage
Copy link
Member

@epage epage commented Feb 2, 2022

This is inspired by cargo which allows you to run cargo test --test
and it will list the possible tests (obviously we can't support that atm
because that requires a lot of runtime processing). When we do have a
static list of possible values, we can at least show those.

Fixes #3320

This is inspired by cargo which allows you to run `cargo test --test`
and it will list the possible tests (obviously we can't support that atm
because that requires a lot of runtime processing).  When we do have a
static list of possible values, we can at least show those.

Fixes clap-rs#3320
@epage epage merged commit 6638fc4 into clap-rs:master Feb 2, 2022
@epage epage deleted the possible branch February 2, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show possible values when an arguments value is missing
1 participant