Skip to content

Commit ab6e94f

Browse files
committed
feat(tree): Complete --prune SPEC
1 parent 8e43074 commit ab6e94f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ pub fn cli() -> Command {
4242
get_pkg_id_spec_candidates,
4343
)),
4444
)
45-
.arg(multi_opt(
46-
"prune",
47-
"SPEC",
48-
"Prune the given package from the display of the dependency tree",
49-
))
45+
.arg(
46+
multi_opt(
47+
"prune",
48+
"SPEC",
49+
"Prune the given package from the display of the dependency tree",
50+
)
51+
.add(clap_complete::ArgValueCandidates::new(
52+
get_pkg_id_spec_candidates,
53+
)),
54+
)
5055
.arg(opt("depth", "Maximum display depth of the dependency tree").value_name("DEPTH"))
5156
.arg(flag("no-indent", "Deprecated, use --prefix=none instead").hide(true))
5257
.arg(flag("prefix-depth", "Deprecated, use --prefix=depth instead").hide(true))

0 commit comments

Comments
 (0)