We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8fd9b commit e06e018Copy full SHA for e06e018
src/bin/cargo/commands/add.rs
@@ -100,7 +100,11 @@ Example uses:
100
.value_name("PATH")
101
.help("Filesystem path to local crate to add")
102
.group("selected")
103
- .conflicts_with("git"),
+ .conflicts_with("git")
104
+ .add(clap_complete::engine::ArgValueCompleter::new(
105
+ clap_complete::engine::PathCompleter::any()
106
+ .filter(|path| path.join("Cargo.toml").exists()),
107
+ )),
108
clap::Arg::new("base")
109
.long("base")
110
.action(ArgAction::Set)
0 commit comments