Skip to content

Commit

Permalink
Merge pull request #5763 from epage/complete
Browse files Browse the repository at this point in the history
fix(complete): Change ValueHint::Unknown to Other, from AnyPath
  • Loading branch information
epage authored Oct 2, 2024
2 parents 61ebe72 + 0887593 commit d6bd7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clap_complete/src/engine/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ fn complete_arg_value(
}
} else {
match arg.get_value_hint() {
clap::ValueHint::Other => {
clap::ValueHint::Unknown | clap::ValueHint::Other => {
// Should not complete
}
clap::ValueHint::Unknown | clap::ValueHint::AnyPath => {
clap::ValueHint::AnyPath => {
values.extend(complete_path(value_os, current_dir, &|_| true));
}
clap::ValueHint::FilePath => {
Expand Down

0 comments on commit d6bd7e2

Please # to comment.