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.
--releaseRemove all artifacts in the release directory.
Remove artifacts in the release directory only.
--profile nameRemove all artifacts in the directory with the given profile name.
+Remove artifacts only in the directory with the given profile name.