Skip to content

Commit 58ed2e3

Browse files
committed
Update the docs for tree to include new format option.
1 parent 69c328c commit 58ed2e3

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/doc/man/cargo-tree.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ strings will be replaced with the corresponding value:
145145
- `{l}` — The package license.
146146
- `{r}` — The package repository URL.
147147
- `{f}` — Comma-separated list of package features that are enabled.
148+
- `{lib}` — The name of the package's library.
148149
{{/option}}
149150

150151
{{#option "`--prefix` _prefix_" }}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ OPTIONS
138138
o {f} — Comma-separated list of package features that are
139139
enabled.
140140

141+
o {lib} — The name of the package's library.
142+
141143
--prefix prefix
142144
Sets how each line is displayed. The prefix value can be one of:
143145

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ strings will be replaced with the corresponding value:</p>
145145
<li><code>{l}</code> — The package license.</li>
146146
<li><code>{r}</code> — The package repository URL.</li>
147147
<li><code>{f}</code> — Comma-separated list of package features that are enabled.</li>
148+
<li><code>{lib}</code> — The name of the package's library.</li>
148149
</ul></dd>
149150

150151

src/etc/man/cargo-tree.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ strings will be replaced with the corresponding value:
186186
.RS 4
187187
\h'-04'\(bu\h'+02'\fB{f}\fR \[em] Comma\-separated list of package features that are enabled.
188188
.RE
189+
.sp
190+
.RS 4
191+
\h'-04'\(bu\h'+02'\fB{lib}\fR \[em] The name of the package's library.
192+
.RE
189193
.RE
190194
.sp
191195
\fB\-\-prefix\fR \fIprefix\fR

0 commit comments

Comments
 (0)