Skip to content

Commit f2cfd67

Browse files
committed
fix doc
1 parent 65c8eb3 commit f2cfd67

18 files changed

+168
-14
lines changed

src/doc/man/cargo-doc.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ the manifest settings. Using target selection options will ignore the `doc`
5151
flag and will always document the given target.
5252

5353
{{#options}}
54-
{{> options-targets-lib-bin-example }}
54+
{{> options-targets-lib-bin }}
55+
56+
{{#option "`--example` _name_..." }}
57+
{{actionverb}} the specified example. This flag may be specified multiple times
58+
and supports common Unix glob patterns.
59+
{{/option}}
60+
61+
{{#option "`--examples`" }}
62+
{{actionverb}} all example targets.
63+
{{/option}}
64+
5565
{{/options}}
5666

5767
{{> section-features }}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ OPTIONS
118118
accidentally expanding glob patterns before Cargo handles them, you must
119119
use single quotes or double quotes around each glob pattern.
120120

121+
--lib
122+
Benchmark the package's library.
123+
124+
--bin name...
125+
Benchmark the specified binary. This flag may be specified multiple
126+
times and supports common Unix glob patterns.
127+
128+
--bins
129+
Benchmark all binary targets.
130+
121131
--example name...
122132
Benchmark the specified example. This flag may be specified multiple
123133
times and supports common Unix glob patterns.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ OPTIONS
5858
accidentally expanding glob patterns before Cargo handles them, you must
5959
use single quotes or double quotes around each glob pattern.
6060

61+
--lib
62+
Build the package's library.
63+
64+
--bin name...
65+
Build the specified binary. This flag may be specified multiple
66+
times and supports common Unix glob patterns.
67+
68+
--bins
69+
Build all binary targets.
70+
6171
--example name...
6272
Build the specified example. This flag may be specified multiple
6373
times and supports common Unix glob patterns.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ OPTIONS
6464
accidentally expanding glob patterns before Cargo handles them, you must
6565
use single quotes or double quotes around each glob pattern.
6666

67+
--lib
68+
Check the package's library.
69+
70+
--bin name...
71+
Check the specified binary. This flag may be specified multiple
72+
times and supports common Unix glob patterns.
73+
74+
--bins
75+
Check all binary targets.
76+
6777
--example name...
6878
Check the specified example. This flag may be specified multiple
6979
times and supports common Unix glob patterns.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ OPTIONS
8787
times and supports common Unix glob patterns.
8888

8989
--examples
90-
Document all examples targets.
90+
Document all example targets.
9191

9292
Feature Selection
9393
The feature flags allow you to control which features are enabled. When

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ OPTIONS
137137
accidentally expanding glob patterns before Cargo handles them, you must
138138
use single quotes or double quotes around each glob pattern.
139139

140+
--lib
141+
Fix the package's library.
142+
143+
--bin name...
144+
Fix the specified binary. This flag may be specified multiple times
145+
and supports common Unix glob patterns.
146+
147+
--bins
148+
Fix all binary targets.
149+
140150
--example name...
141151
Fix the specified example. This flag may be specified multiple times
142152
and supports common Unix glob patterns.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ OPTIONS
4949
accidentally expanding glob patterns before Cargo handles them, you must
5050
use single quotes or double quotes around each glob pattern.
5151

52+
--lib
53+
Build the package's library.
54+
55+
--bin name...
56+
Build the specified binary. This flag may be specified multiple
57+
times and supports common Unix glob patterns.
58+
59+
--bins
60+
Build all binary targets.
61+
5262
--example name...
5363
Build the specified example. This flag may be specified multiple
5464
times and supports common Unix glob patterns.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ OPTIONS
5858
accidentally expanding glob patterns before Cargo handles them, you must
5959
use single quotes or double quotes around each glob pattern.
6060

61+
--lib
62+
Document the package's library.
63+
64+
--bin name...
65+
Document the specified binary. This flag may be specified multiple
66+
times and supports common Unix glob patterns.
67+
68+
--bins
69+
Document all binary targets.
70+
6171
--example name...
6272
Document the specified example. This flag may be specified multiple
6373
times and supports common Unix glob patterns.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ OPTIONS
131131
accidentally expanding glob patterns before Cargo handles them, you must
132132
use single quotes or double quotes around each glob pattern.
133133

134+
--lib
135+
Test the package's library.
136+
137+
--bin name...
138+
Test the specified binary. This flag may be specified multiple times
139+
and supports common Unix glob patterns.
140+
141+
--bins
142+
Test all binary targets.
143+
134144
--example name...
135145
Test the specified example. This flag may be specified multiple
136146
times and supports common Unix glob patterns.

src/doc/man/includes/options-targets-lib-bin-example.md renamed to src/doc/man/includes/options-targets-lib-bin.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,3 @@ and supports common Unix glob patterns.
1010
{{#option "`--bins`" }}
1111
{{actionverb}} all binary targets.
1212
{{/option}}
13-
14-
{{#option "`--example` _name_..." }}
15-
{{actionverb}} the specified example. This flag may be specified multiple times
16-
and supports common Unix glob patterns.
17-
{{/option}}
18-
19-
{{#option "`--examples`" }}
20-
{{actionverb}} all examples targets.
21-
{{/option}}
22-

0 commit comments

Comments
 (0)