mirror of
https://github.com/rust-lang/cargo
synced 2024-07-05 01:19:13 +00:00
Make --timings
require =
if passing an argument
This avoids ambiguity between its optional argument and positional arguments.
This commit is contained in:
parent
e23f5f41d1
commit
c854247149
|
@ -236,11 +236,14 @@ pub trait AppExt: Sized {
|
|||
}
|
||||
|
||||
fn arg_timings(self) -> Self {
|
||||
self._arg(optional_multi_opt(
|
||||
"timings",
|
||||
"FMTS",
|
||||
"Timing output formats (comma separated): html, json (unstable)",
|
||||
))
|
||||
self._arg(
|
||||
optional_opt(
|
||||
"timings",
|
||||
"Timing output formats (comma separated): html, json (unstable)",
|
||||
)
|
||||
.value_name("FMTS")
|
||||
.require_equals(true),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ OPTIONS
|
|||
than the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -156,7 +156,7 @@ OPTIONS
|
|||
the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -169,7 +169,7 @@ OPTIONS
|
|||
the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -140,7 +140,7 @@ OPTIONS
|
|||
the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -242,7 +242,7 @@ OPTIONS
|
|||
required Rust version as configured in the project's rust-version
|
||||
field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -205,7 +205,7 @@ OPTIONS
|
|||
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
|
||||
details on profiles.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -85,7 +85,7 @@ OPTIONS
|
|||
required Rust version as configured in the project's rust-version
|
||||
field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -164,7 +164,7 @@ OPTIONS
|
|||
the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -156,7 +156,7 @@ OPTIONS
|
|||
the required Rust version as configured in the project's
|
||||
rust-version field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -233,7 +233,7 @@ OPTIONS
|
|||
required Rust version as configured in the project's rust-version
|
||||
field.
|
||||
|
||||
--timings fmts
|
||||
--timings=fmts
|
||||
Output information how long each compilation takes, and track
|
||||
concurrency information over time. Accepts an optional
|
||||
comma-separated list of output formats; --timing without an argument
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#option "`--timings` _fmts_"}}
|
||||
{{#option "`--timings=`_fmts_"}}
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; `--timing` without an argument will default to `--timing=html`. Valid
|
||||
|
|
|
@ -265,7 +265,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-bench---timings"><a class="option-anchor" href="#option-cargo-bench---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-bench---timings=fmts"><a class="option-anchor" href="#option-cargo-bench---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -200,7 +200,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-build---timings"><a class="option-anchor" href="#option-cargo-build---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-build---timings=fmts"><a class="option-anchor" href="#option-cargo-build---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -209,7 +209,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-check---timings"><a class="option-anchor" href="#option-cargo-check---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-check---timings=fmts"><a class="option-anchor" href="#option-cargo-check---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -183,7 +183,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-doc---timings"><a class="option-anchor" href="#option-cargo-doc---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-doc---timings=fmts"><a class="option-anchor" href="#option-cargo-doc---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -289,7 +289,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-fix---timings"><a class="option-anchor" href="#option-cargo-fix---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-fix---timings=fmts"><a class="option-anchor" href="#option-cargo-fix---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -236,7 +236,7 @@ See the <a href="../reference/profiles.html">the reference</a> for more details
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-install---timings"><a class="option-anchor" href="#option-cargo-install---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-install---timings=fmts"><a class="option-anchor" href="#option-cargo-install---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -118,7 +118,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-run---timings"><a class="option-anchor" href="#option-cargo-run---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-run---timings=fmts"><a class="option-anchor" href="#option-cargo-run---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -197,7 +197,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-rustc---timings"><a class="option-anchor" href="#option-cargo-rustc---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-rustc---timings=fmts"><a class="option-anchor" href="#option-cargo-rustc---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -202,7 +202,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-rustdoc---timings"><a class="option-anchor" href="#option-cargo-rustdoc---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-rustdoc---timings=fmts"><a class="option-anchor" href="#option-cargo-rustdoc---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -281,7 +281,7 @@ required Rust version as configured in the project's <code>rust-version</code> f
|
|||
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-test---timings"><a class="option-anchor" href="#option-cargo-test---timings"></a><code>--timings</code> <em>fmts</em></dt>
|
||||
<dt class="option-term" id="option-cargo-test---timings=fmts"><a class="option-anchor" href="#option-cargo-test---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
|
||||
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma-separated list of output
|
||||
formats; <code>--timing</code> without an argument will default to <code>--timing=html</code>. Valid
|
||||
|
|
|
@ -269,7 +269,7 @@ Benchmark the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -188,7 +188,7 @@ Build the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -199,7 +199,7 @@ Check the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -166,7 +166,7 @@ Document the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -294,7 +294,7 @@ Fix the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -267,7 +267,7 @@ Install with the given profile.
|
|||
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -99,7 +99,7 @@ Run the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -194,7 +194,7 @@ Build the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -185,7 +185,7 @@ Document the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
|
@ -285,7 +285,7 @@ Test the target even if the selected Rust compiler is older than the
|
|||
required Rust version as configured in the project's \fBrust\-version\fR field.
|
||||
.RE
|
||||
.sp
|
||||
\fB\-\-timings\fR \fIfmts\fR
|
||||
\fB\-\-timings=\fR\fIfmts\fR
|
||||
.RS 4
|
||||
Output information how long each compilation takes, and track concurrency
|
||||
information over time. Accepts an optional comma\-separated list of output
|
||||
|
|
Loading…
Reference in New Issue
Block a user