Skip to content

Commit

Permalink
cancel examples
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Aug 25, 2021
1 parent f2cfd67 commit 92c35f2
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/bin/cargo/commands/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pub fn cli() -> App {
"open",
"Opens the docs in a browser after the operation",
))
.arg(opt("examples", "Document all examples"))
.arg_package_spec(
"Package to document",
"Document all packages in the workspace",
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-bench.1
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Benchmark the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Benchmark the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Benchmark all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Benchmark the specified example. This flag may be specified multiple times
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-build.1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Build the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Build the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Build all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Build the specified example. This flag may be specified multiple times
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-check.1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Check the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Check the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Check all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Check the specified example. This flag may be specified multiple times
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-doc.1
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ and supports common Unix glob patterns.
.sp
\fB\-\-examples\fR
.RS 4
Document all examples targets.
Document all example targets.
.RE
.SS "Feature Selection"
The feature flags allow you to control which features are enabled. When no
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-fix.1
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Fix the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Fix the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Fix all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Fix the specified example. This flag may be specified multiple times
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-rustc.1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Build the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Build the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Build all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Build the specified example. This flag may be specified multiple times
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-rustdoc.1
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Document the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Document the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Document all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Document the specified example. This flag may be specified multiple times
Expand Down
16 changes: 16 additions & 0 deletions src/etc/man/cargo-test.1
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,22 @@ support common Unix glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However,
shell accidentally expanding glob patterns before Cargo handles them, you must
use single quotes or double quotes around each glob pattern.
.sp
\fB\-\-lib\fR
.RS 4
Test the package's library.
.RE
.sp
\fB\-\-bin\fR \fIname\fR\&...
.RS 4
Test the specified binary. This flag may be specified multiple times
and supports common Unix glob patterns.
.RE
.sp
\fB\-\-bins\fR
.RS 4
Test all binary targets.
.RE
.sp
\fB\-\-example\fR \fIname\fR\&...
.RS 4
Test the specified example. This flag may be specified multiple times
Expand Down

0 comments on commit 92c35f2

Please sign in to comment.