Skip to content

Commit 5dbbb18

Browse files
committed
Update cargo tree command docs with new version requirement option
Signed-off-by: Alexandre Barone <abalexandrebarone@gmail.com>
1 parent 97a2e17 commit 5dbbb18

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
@@ -167,6 +167,7 @@ strings will be replaced with the corresponding value:
167167
- `{r}` --- The package repository URL.
168168
- `{f}` --- Comma-separated list of package features that are enabled.
169169
- `{lib}` --- The name, as used in a `use` statement, of the package's library.
170+
- `{ver-req}` --- The version requirement resolved for the package.
170171
{{/option}}
171172

172173
{{#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
@@ -166,6 +166,8 @@ OPTIONS
166166
o {lib} — The name, as used in a use statement, of the
167167
package’s library.
168168

169+
o {ver-req} — The version requirement resolved for the package.
170+
169171
--prefix prefix
170172
Sets how each line is displayed. The prefix value can be one of:
171173

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ strings will be replaced with the corresponding value:</p>
170170
<li><code>{r}</code> — The package repository URL.</li>
171171
<li><code>{f}</code> — Comma-separated list of package features that are enabled.</li>
172172
<li><code>{lib}</code> — The name, as used in a <code>use</code> statement, of the package’s library.</li>
173+
<li><code>{ver-req}</code> — The version requirement resolved for the package.</li>
173174
</ul>
174175
</dd>
175176

src/etc/man/cargo-tree.1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ strings will be replaced with the corresponding value:
208208
.RS 4
209209
\h'-04'\(bu\h'+03'\fB{lib}\fR \[em] The name, as used in a \fBuse\fR statement, of the package\[cq]s library.
210210
.RE
211+
.sp
212+
.RS 4
213+
\h'-04'\(bu\h'+03'\fB{ver\-req}\fR \[em] The version requirement resolved for the package.
214+
.RE
211215
.RE
212216
.sp
213217
\fB\-\-prefix\fR \fIprefix\fR

0 commit comments

Comments
 (0)