Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
6 changes: 4 additions & 2 deletions src/doc/man/cargo-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ the target directory.
{{/option}}

{{#option "`--release`" }}
Remove all artifacts in the `release` directory.
Remove artifacts in the `release` directory only (instead of the default,
which removes all artifacts).
{{/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 (instead
of the default, which removes all artifacts).
{{/option}}

{{> options-target-dir }}
Expand Down
6 changes: 4 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,12 @@ OPTIONS
in the target directory.

--release
Remove all artifacts in the release directory.
Remove artifacts in the release directory only (instead of the
default, which removes all artifacts).

--profile name
Remove all artifacts in the directory with the given profile name.
Remove artifacts only in the directory with the given profile name
(instead of the default, which removes all artifacts).

--target-dir directory
Directory for all generated artifacts and intermediate files. May
Expand Down
6 changes: 4 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,14 @@ 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 (instead of the
default, which removes all artifacts).</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
(instead of the default, which removes all artifacts).</p>
</dd>


Expand Down
Loading