Skip to content

Commit afea119

Browse files
committed
Recategorize cargo test's --doc flag under "Target Selection"
1 parent 07ac23a commit afea119

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

src/bin/cargo/commands/test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub fn cli() -> Command {
1818
.num_args(0..)
1919
.last(true),
2020
)
21-
.arg(flag("doc", "Test only this library's documentation"))
2221
.arg(flag("no-run", "Compile, but don't run tests"))
2322
.arg(flag("no-fail-fast", "Run all tests regardless of failure"))
2423
.arg_future_incompat_report()
@@ -47,6 +46,10 @@ pub fn cli() -> Command {
4746
"Test all bench targets",
4847
"Test all targets (does not include doctests)",
4948
)
49+
.arg(
50+
flag("doc", "Test only this library's documentation")
51+
.help_heading(heading::TARGET_SELECTION),
52+
)
5053
.arg_features()
5154
.arg_jobs()
5255
.arg_unsupported_keep_going()

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

Lines changed: 30 additions & 30 deletions
Loading

0 commit comments

Comments
 (0)