From 07c40a7c86a93f6443283cd2104690d2f87c926d Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sat, 29 May 2021 11:33:26 +0800 Subject: [PATCH] doc(carog-tree): new `--prune` option --- src/doc/man/cargo-tree.md | 4 ++++ src/doc/man/generated_txt/cargo-tree.txt | 3 +++ src/doc/src/commands/cargo-tree.md | 4 ++++ src/etc/man/cargo-tree.1 | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/src/doc/man/cargo-tree.md b/src/doc/man/cargo-tree.md index e4a1b616a..e8d439793 100644 --- a/src/doc/man/cargo-tree.md +++ b/src/doc/man/cargo-tree.md @@ -71,6 +71,10 @@ flag can be used to display the package's reverse dependencies only with the subtree of the package given to `-p`. {{/option}} +{{#option "`--prune` _spec_" }} +Prune the given package from the display of the dependency tree. +{{/option}} + {{#option "`--depth` _depth_" }} Maximum display depth of the dependency tree. A depth of 1 displays the direct dependencies, for example. diff --git a/src/doc/man/generated_txt/cargo-tree.txt b/src/doc/man/generated_txt/cargo-tree.txt index 345a941d2..3928eca01 100644 --- a/src/doc/man/generated_txt/cargo-tree.txt +++ b/src/doc/man/generated_txt/cargo-tree.txt @@ -59,6 +59,9 @@ OPTIONS package's reverse dependencies only with the subtree of the package given to -p. + --prune spec + Prune the given package from the display of the dependency tree. + --depth depth Maximum display depth of the dependency tree. A depth of 1 displays the direct dependencies, for example. diff --git a/src/doc/src/commands/cargo-tree.md b/src/doc/src/commands/cargo-tree.md index a085d63ef..16b82f538 100644 --- a/src/doc/src/commands/cargo-tree.md +++ b/src/doc/src/commands/cargo-tree.md @@ -71,6 +71,10 @@ flag can be used to display the package's reverse dependencies only with the subtree of the package given to -p. +
--prune spec
+
Prune the given package from the display of the dependency tree.
+ +
--depth depth
Maximum display depth of the dependency tree. A depth of 1 displays the direct dependencies, for example.
diff --git a/src/etc/man/cargo-tree.1 b/src/etc/man/cargo-tree.1 index 48803dedc..e2967e7c7 100644 --- a/src/etc/man/cargo-tree.1 +++ b/src/etc/man/cargo-tree.1 @@ -69,6 +69,11 @@ flag can be used to display the package's reverse dependencies only with the subtree of the package given to \fB\-p\fR\&. .RE .sp +\fB\-\-prune\fR \fIspec\fR +.RS 4 +Prune the given package from the display of the dependency tree. +.RE +.sp \fB\-\-depth\fR \fIdepth\fR .RS 4 Maximum display depth of the dependency tree. A depth of 1 displays the direct