Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bin/cargo/commands/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/doc/man/cargo-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions src/doc/man/generated_txt/cargo-clean.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/doc/src/commands/cargo-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ the target directory.</p>


<dt class="option-term" id="option-cargo-clean---release"><a class="option-anchor" href="#option-cargo-clean---release"><code>--release</code></a></dt>
<dd class="option-desc"><p>Remove all artifacts in the <code>release</code> directory.</p>
<dd class="option-desc"><p>Remove artifacts in the <code>release</code> directory only.</p>
</dd>


<dt class="option-term" id="option-cargo-clean---profile"><a class="option-anchor" href="#option-cargo-clean---profile"><code>--profile</code> <em>name</em></a></dt>
<dd class="option-desc"><p>Remove all artifacts in the directory with the given profile name.</p>
<dd class="option-desc"><p>Remove artifacts only in the directory with the given profile name.</p>
</dd>


Expand Down
4 changes: 2 additions & 2 deletions src/etc/man/cargo-clean.1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment on lines +47 to +52

@0xPoe 0xPoe Jul 14, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we need to have two styles here. Maybe we should unify the only places.

View changes since the review

.RE
.sp
\fB\-\-target\-dir\fR \fIdirectory\fR
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/cargo_clean/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.