Skip to content

Commit 7f0ee92

Browse files
committed
properly added links to the 'target' glossary entry of the 'cargo tree' and 'cargo metadata' command man pages
1 parent 40a615e commit 7f0ee92

File tree

8 files changed

+19
-13
lines changed

8 files changed

+19
-13
lines changed

src/doc/man/cargo-metadata.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ possible value.
311311
312312
{{#option "`--filter-platform` _triple_" }}
313313
This filters the `resolve` output to only include dependencies for the
314-
given target triple. Without this flag, the resolve includes all targets.
314+
given [target triple](../appendix/glossary.html#target).
315+
Without this flag, the resolve includes all targets.
315316
316317
Note that the dependencies listed in the "packages" array still includes all
317318
dependencies. Each package definition is intended to be an unaltered

src/doc/man/cargo-tree.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ The default is `normal,build,dev`.
137137
{{/option}}
138138

139139
{{#option "`--target` _triple_" }}
140-
Filter dependencies matching the given target-triple. The default is the host
141-
platform. Use the value `all` to include *all* targets.
140+
Filter dependencies matching the given [target triple](../appendix/glossary.html#target).
141+
The default is the host platform. Use the value `all` to include *all* targets.
142142
{{/option}}
143143

144144
{{/options}}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ OPTIONS
299299

300300
--filter-platform triple
301301
This filters the resolve output to only include dependencies for the
302-
given target triple. Without this flag, the resolve includes all
303-
targets.
302+
given target triple
303+
<https://doc.rust-lang.org/cargo/appendix/glossary.html#target>.
304+
Without this flag, the resolve includes all targets.
304305

305306
Note that the dependencies listed in the "packages" array still
306307
includes all dependencies. Each package definition is intended to be

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ OPTIONS
133133
The default is normal,build,dev.
134134

135135
--target triple
136-
Filter dependencies matching the given target-triple. The default is
137-
the host platform. Use the value all to include all targets.
136+
Filter dependencies matching the given target triple
137+
<https://doc.rust-lang.org/cargo/appendix/glossary.html#target>. The
138+
default is the host platform. Use the value all to include all
139+
targets.
138140

139141
Tree Formatting Options
140142
--charset charset

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ possible value.</dd>
311311
312312
<dt class="option-term" id="option-cargo-metadata---filter-platform"><a class="option-anchor" href="#option-cargo-metadata---filter-platform"></a><code>--filter-platform</code> <em>triple</em></dt>
313313
<dd class="option-desc">This filters the <code>resolve</code> output to only include dependencies for the
314-
given <a href="../appendix/glossary.md#target">target triple</a>. Without this flag, the resolve includes
315-
all targets.</p>
314+
given <a href="../appendix/glossary.html#target">target triple</a>.
315+
Without this flag, the resolve includes all targets.</p>
316316
<p>Note that the dependencies listed in the &quot;packages&quot; array still includes all
317317
dependencies. Each package definition is intended to be an unaltered
318318
reproduction of the information within <code>Cargo.toml</code>.</dd>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ kind given, then it will automatically include the other dependency kinds.</li>
137137

138138

139139
<dt class="option-term" id="option-cargo-tree---target"><a class="option-anchor" href="#option-cargo-tree---target"></a><code>--target</code> <em>triple</em></dt>
140-
<dd class="option-desc">Filter dependencies matching the given <a href="../appendix/glossary.md#target">target triple</a>.
140+
<dd class="option-desc">Filter dependencies matching the given <a href="../appendix/glossary.html#target">target triple</a>.
141141
The default is the host platform. Use the value <code>all</code> to include <em>all</em> targets.</dd>
142142

143+
143144
</dl>
144145

145146
### Tree Formatting Options

src/etc/man/cargo-metadata.1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ possible value.
308308
\fB\-\-filter\-platform\fR \fItriple\fR
309309
.RS 4
310310
This filters the \fBresolve\fR output to only include dependencies for the
311-
given target triple. Without this flag, the resolve includes all targets.
311+
given \fItarget triple\fR <https://doc.rust\-lang.org/cargo/appendix/glossary.html#target>\&.
312+
Without this flag, the resolve includes all targets.
312313
.sp
313314
Note that the dependencies listed in the "packages" array still includes all
314315
dependencies. Each package definition is intended to be an unaltered

src/etc/man/cargo-tree.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ The default is \fBnormal,build,dev\fR\&.
167167
.sp
168168
\fB\-\-target\fR \fItriple\fR
169169
.RS 4
170-
Filter dependencies matching the given target\-triple. The default is the host
171-
platform. Use the value \fBall\fR to include \fIall\fR targets.
170+
Filter dependencies matching the given \fItarget triple\fR <https://doc.rust\-lang.org/cargo/appendix/glossary.html#target>\&.
171+
The default is the host platform. Use the value \fBall\fR to include \fIall\fR targets.
172172
.RE
173173
.SS "Tree Formatting Options"
174174
.sp

0 commit comments

Comments
 (0)