Skip to content

Commit

Permalink
Recategorize cargo test's --doc flag under "Target Selection"
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 15, 2024
1 parent 07ac23a commit afea119
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
5 changes: 4 additions & 1 deletion src/bin/cargo/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub fn cli() -> Command {
.num_args(0..)
.last(true),
)
.arg(flag("doc", "Test only this library's documentation"))
.arg(flag("no-run", "Compile, but don't run tests"))
.arg(flag("no-fail-fast", "Run all tests regardless of failure"))
.arg_future_incompat_report()
Expand Down Expand Up @@ -47,6 +46,10 @@ pub fn cli() -> Command {
"Test all bench targets",
"Test all targets (does not include doctests)",
)
.arg(
flag("doc", "Test only this library's documentation")
.help_heading(heading::TARGET_SELECTION),
)
.arg_features()
.arg_jobs()
.arg_unsupported_keep_going()
Expand Down
60 changes: 30 additions & 30 deletions tests/testsuite/cargo_test/help/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit afea119

Please sign in to comment.