Skip to content

Commit 2791c12

Browse files
committed
cargo ... --help: clarify --tests and --benches
1 parent e8adba9 commit 2791c12

File tree

14 files changed

+28
-28
lines changed

14 files changed

+28
-28
lines changed

src/bin/cargo/commands/bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ pub fn cli() -> Command {
3636
"Benchmark only the specified example",
3737
"Benchmark all examples",
3838
"Benchmark only the specified test target",
39-
"Benchmark all test targets",
39+
"Benchmark all targets that have `test = true` set",
4040
"Benchmark only the specified bench target",
41-
"Benchmark all bench targets",
41+
"Benchmark all targets that have `bench = true` set",
4242
"Benchmark all targets",
4343
)
4444
.arg_features()

src/bin/cargo/commands/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pub fn cli() -> Command {
2222
"Build only the specified example",
2323
"Build all examples",
2424
"Build only the specified test target",
25-
"Build all test targets",
25+
"Build all targets that have `test = true` set",
2626
"Build only the specified bench target",
27-
"Build all bench targets",
27+
"Build all targets that have `bench = true` set",
2828
"Build all targets",
2929
)
3030
.arg_features()

src/bin/cargo/commands/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pub fn cli() -> Command {
2222
"Check only the specified example",
2323
"Check all examples",
2424
"Check only the specified test target",
25-
"Check all test targets",
25+
"Check all targets that have `test = true` set",
2626
"Check only the specified bench target",
27-
"Check all bench targets",
27+
"Check all targets that have `bench = true` set",
2828
"Check all targets",
2929
)
3030
.arg_features()

src/bin/cargo/commands/fix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ pub fn cli() -> Command {
4141
"Fix only the specified example",
4242
"Fix all examples",
4343
"Fix only the specified test target",
44-
"Fix all test targets",
44+
"Fix all targets that have `test = true` set",
4545
"Fix only the specified bench target",
46-
"Fix all bench targets",
46+
"Fix all targets that have `bench = true` set",
4747
"Fix all targets (default)",
4848
)
4949
.arg_features()

src/bin/cargo/commands/rustc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ pub fn cli() -> Command {
3838
"Build only the specified example",
3939
"Build all examples",
4040
"Build only the specified test target",
41-
"Build all test targets",
41+
"Build all targets that have `test = true` set",
4242
"Build only the specified bench target",
43-
"Build all bench targets",
43+
"Build all targets that have `bench = true` set",
4444
"Build all targets",
4545
)
4646
.arg_features()

src/bin/cargo/commands/rustdoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pub fn cli() -> Command {
2626
"Build only the specified example",
2727
"Build all examples",
2828
"Build only the specified test target",
29-
"Build all test targets",
29+
"Build all targets that have `test = true` set",
3030
"Build only the specified bench target",
31-
"Build all bench targets",
31+
"Build all targets that have `bench = true` set",
3232
"Build all targets",
3333
)
3434
.arg_features()

src/bin/cargo/commands/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ pub fn cli() -> Command {
4141
"Test only the specified example",
4242
"Test all examples",
4343
"Test only the specified test target",
44-
"Test all test targets",
44+
"Test all targets that have `test = true` set",
4545
"Test only the specified bench target",
46-
"Test all bench targets",
46+
"Test all targets that have `bench = true` set",
4747
"Test all targets (does not include doctests)",
4848
)
4949
.arg(

tests/testsuite/cargo_bench/help/stdout.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_build/help/stdout.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_check/help/stdout.term.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)