Skip to content

Commit 07c40a7

Browse files
committed
doc(carog-tree): new --prune option
1 parent 64f5d10 commit 07c40a7

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/doc/man/cargo-tree.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ flag can be used to display the package's reverse dependencies only with the
7171
subtree of the package given to `-p`.
7272
{{/option}}
7373

74+
{{#option "`--prune` _spec_" }}
75+
Prune the given package from the display of the dependency tree.
76+
{{/option}}
77+
7478
{{#option "`--depth` _depth_" }}
7579
Maximum display depth of the dependency tree. A depth of 1 displays the direct
7680
dependencies, for example.

src/doc/man/generated_txt/cargo-tree.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ OPTIONS
5959
package's reverse dependencies only with the subtree of the package
6060
given to -p.
6161

62+
--prune spec
63+
Prune the given package from the display of the dependency tree.
64+
6265
--depth depth
6366
Maximum display depth of the dependency tree. A depth of 1 displays
6467
the direct dependencies, for example.

src/doc/src/commands/cargo-tree.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ flag can be used to display the package's reverse dependencies only with the
7171
subtree of the package given to <code>-p</code>.</dd>
7272

7373

74+
<dt class="option-term" id="option-cargo-tree---prune"><a class="option-anchor" href="#option-cargo-tree---prune"></a><code>--prune</code> <em>spec</em></dt>
75+
<dd class="option-desc">Prune the given package from the display of the dependency tree.</dd>
76+
77+
7478
<dt class="option-term" id="option-cargo-tree---depth"><a class="option-anchor" href="#option-cargo-tree---depth"></a><code>--depth</code> <em>depth</em></dt>
7579
<dd class="option-desc">Maximum display depth of the dependency tree. A depth of 1 displays the direct
7680
dependencies, for example.</dd>

src/etc/man/cargo-tree.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ flag can be used to display the package's reverse dependencies only with the
6969
subtree of the package given to \fB\-p\fR\&.
7070
.RE
7171
.sp
72+
\fB\-\-prune\fR \fIspec\fR
73+
.RS 4
74+
Prune the given package from the display of the dependency tree.
75+
.RE
76+
.sp
7277
\fB\-\-depth\fR \fIdepth\fR
7378
.RS 4
7479
Maximum display depth of the dependency tree. A depth of 1 displays the direct

0 commit comments

Comments
 (0)