diff --git a/src/bin/cargo/commands/clean.rs b/src/bin/cargo/commands/clean.rs index 0bde5a343a7..fadebd27e10 100644 --- a/src/bin/cargo/commands/clean.rs +++ b/src/bin/cargo/commands/clean.rs @@ -26,8 +26,8 @@ pub fn cli() -> Command { flag("workspace", "Clean artifacts of the workspace members") .help_heading(heading::PACKAGE_SELECTION), ) - .arg_release("Whether or not to clean release artifacts") - .arg_profile("Clean artifacts of the specified profile") + .arg_release("Clean only release artifacts") + .arg_profile("Clean only artifacts of the specified profile") .arg_target_triple("Target triple to clean output for") .arg_target_dir() .arg_manifest_path() diff --git a/src/doc/man/cargo-clean.md b/src/doc/man/cargo-clean.md index 05e34602e1c..387f8445ca6 100644 --- a/src/doc/man/cargo-clean.md +++ b/src/doc/man/cargo-clean.md @@ -53,11 +53,11 @@ the target directory. {{/option}} {{#option "`--release`" }} -Remove all artifacts in the `release` directory. +Remove artifacts in the `release` directory only. {{/option}} {{#option "`--profile` _name_" }} -Remove all artifacts in the directory with the given profile name. +Remove artifacts only in the directory with the given profile name. {{/option}} {{> options-target-dir }} diff --git a/src/doc/man/generated_txt/cargo-clean.txt b/src/doc/man/generated_txt/cargo-clean.txt index a25c8f2a8ef..99ae179e390 100644 --- a/src/doc/man/generated_txt/cargo-clean.txt +++ b/src/doc/man/generated_txt/cargo-clean.txt @@ -35,10 +35,10 @@ OPTIONS in the target directory. --release - Remove all artifacts in the release directory. + Remove artifacts in the release directory only. --profile name - Remove all artifacts in the directory with the given profile name. + Remove artifacts only in the directory with the given profile name. --target-dir directory Directory for all generated artifacts and intermediate files. May diff --git a/src/doc/src/commands/cargo-clean.md b/src/doc/src/commands/cargo-clean.md index 22da161097d..cce9aafc234 100644 --- a/src/doc/src/commands/cargo-clean.md +++ b/src/doc/src/commands/cargo-clean.md @@ -54,12 +54,12 @@ the target directory.

--release
-

Remove all artifacts in the release directory.

+

Remove artifacts in the release directory only.

--profile name
-

Remove all artifacts in the directory with the given profile name.

+

Remove artifacts only in the directory with the given profile name.

diff --git a/src/etc/man/cargo-clean.1 b/src/etc/man/cargo-clean.1 index bbdebd3c8af..3ee8c54cb57 100644 --- a/src/etc/man/cargo-clean.1 +++ b/src/etc/man/cargo-clean.1 @@ -44,12 +44,12 @@ the target directory. .sp \fB\-\-release\fR .RS 4 -Remove all artifacts in the \fBrelease\fR directory. +Remove artifacts in the \fBrelease\fR directory only. .RE .sp \fB\-\-profile\fR \fIname\fR .RS 4 -Remove all artifacts in the directory with the given profile name. +Remove artifacts only in the directory with the given profile name. .RE .sp \fB\-\-target\-dir\fR \fIdirectory\fR diff --git a/tests/testsuite/cargo_clean/help/stdout.term.svg b/tests/testsuite/cargo_clean/help/stdout.term.svg index 1d60aa0010f..9d9a35a5c32 100644 --- a/tests/testsuite/cargo_clean/help/stdout.term.svg +++ b/tests/testsuite/cargo_clean/help/stdout.term.svg @@ -60,9 +60,9 @@ Compilation Options: - -r, --release Whether or not to clean release artifacts + -r, --release Clean only release artifacts - --profile <PROFILE-NAME> Clean artifacts of the specified profile + --profile <PROFILE-NAME> Clean only artifacts of the specified profile --target [<TRIPLE>] Target triple to clean output for