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

fix(complete): Change ValueHint::Unknown to Other, from AnyPath #5763

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

epage
Copy link
Member

@epage epage commented Oct 2, 2024

AnyPath is the documented behavior but thats to help when there isn't much other information. With us choosing a ValueHint based on the value parser, we are less likely to get benefit from AnyPath.

Instead, this will greatly improve cases like Cargo where we offer path completions on many arguments where it doesn't make sense.

`AnyPath` is the documented behavior *but* thats to help when there
isn't much other information.  With us choosing a `ValueHint` based on
the value parser, we are less likely to get benefit from `AnyPath`.

Instead, this will greatly improve cases like Cargo where we offer path
completions on many arguments where it doesn't make sense.
@epage epage merged commit d6bd7e2 into clap-rs:master Oct 2, 2024
24 of 25 checks passed
@epage epage deleted the complete branch October 2, 2024 14:31
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.

1 participant