File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -274,16 +274,13 @@ _cargo() {
274
274
tree)
275
275
_arguments -s -S $common $features $triple $manifest \
276
276
'(-p --package)'{-p+,--package=}'[package to use as the root]:package:_cargo_package_names' \
277
- '--no-filter-targets[return dependencies for all targets]' \
278
- '--no-dev-dependencies[skip dev dependencies]' \
279
- '(-i --invert)'{-i,--invert}'[invert the tree]' \
280
- '--no-indent[display as a list]' \
281
- '--prefix-depth[display as a list with numeric depth]' \
277
+ '(-i --invert)'{-i+,--invert=}'[invert the tree for the given package]:package:_cargo_package_names' \
278
+ '--prefix=[line prefix]:prefix:(depth indent none)' \
282
279
'--no-dedupe[repeat shared dependencies]' \
283
280
'(-d --duplicates)'{-d,--duplicates}'[packages with multiple versions]' \
284
- '--charset=[utf8 or ascii]' \
285
- '(-f --format)'{-f,--format=}'[format string]' \
286
- '--graph-features[show features] ' \
281
+ '--charset=[utf8 or ascii]:charset:(utf8 ascii) ' \
282
+ '(-f --format)'{-f,--format=}'[format string]:format ' \
283
+ '(-e --edges)'{-e,--edges=}'[edge kinds]:kind:(features normal build dev all no-dev no-build no-normal) ' \
287
284
;;
288
285
289
286
uninstall)
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ _cargo()
73
73
local opt__rustdoc=" $opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --release --open --target-dir --profile"
74
74
local opt__search=" $opt_common $opt_lock --limit --index --registry"
75
75
local opt__test=" $opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --doc --target --no-run --release --no-fail-fast --target-dir --profile"
76
- local opt__tree=" $opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock --target --no-filter-targets --no-dev-dependencies - i --invert --no-indent -- prefix-depth --no-dedupe --duplicates -d --charset -f --format --graph-features "
76
+ local opt__tree=" $opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock --target -i --invert --prefix --no-dedupe --duplicates -d --charset -f --format -e --edges "
77
77
local opt__uninstall=" $opt_common $opt_lock $opt_pkg --bin --root"
78
78
local opt__update=" $opt_common $opt_mani $opt_lock $opt_pkg --aggressive --precise --dry-run"
79
79
local opt__vendor=" $opt_common $opt_mani $opt_lock $opt_sync --no-delete --respect-source-config --versioned-dirs"
You can’t perform that action at this time.
0 commit comments