]> git.proxmox.com Git - cargo.git/commitdiff
doc(cargo-tree): add `--depth` option
authorWeihang Lo <me@weihanglo.tw>
Wed, 19 May 2021 01:24:52 +0000 (09:24 +0800)
committerWeihang Lo <me@weihanglo.tw>
Wed, 19 May 2021 01:59:01 +0000 (09:59 +0800)
src/doc/man/cargo-tree.md

index 789de41716d35660edf62053e6a4ad6b684dee00..acc2b8f659b120223fe2e59177f891c44d4dae14 100644 (file)
@@ -71,6 +71,11 @@ flag can be used to display the package's reverse dependencies only with the
 subtree of the package given to `-p`.
 {{/option}}
 
+{{#option "`--depth` _depth_" }}
+Maximum display depth of the dependency tree. A depth of 1 displays the direct
+dependencies, for example.
+{{/option}}
+
 {{#option "`--no-dedupe`" }}
 Do not de-duplicate repeated dependencies. Usually, when a package has already
 displayed its dependencies, further occurrences will not re-display its