Skip to content

Commit 655f75d

Browse files
committed
Add cargo --dry-run to the documentation.
1 parent c204734 commit 655f75d

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

src/doc/man/cargo-clean.md

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ multiple times. See {{man "cargo-pkgid" 1}} for the SPEC format.
3636

3737
{{#options}}
3838

39+
{{#option "`--dry-run`" }}
40+
Displays a summary of what would be deleted without deleting anything.
41+
Use with `--verbose` to display the actual files that would be deleted.
42+
{{/option}}
43+
3944
{{#option "`--doc`" }}
4045
This option will cause `cargo clean` to remove only the `doc` directory in
4146
the target directory.

src/doc/man/generated_txt/cargo-clean.txt

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ OPTIONS
2222
multiple times. See cargo-pkgid(1) for the SPEC format.
2323

2424
Clean Options
25+
--dry-run
26+
Displays a summary of what would be deleted without deleting
27+
anything. Use with --verbose to display the actual files that would
28+
be deleted.
29+
2530
--doc
2631
This option will cause cargo clean to remove only the doc directory
2732
in the target directory.

src/doc/src/commands/cargo-clean.md

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ multiple times. See <a href="cargo-pkgid.html">cargo-pkgid(1)</a> for the SPEC f
3434

3535
<dl>
3636

37+
<dt class="option-term" id="option-cargo-clean---dry-run"><a class="option-anchor" href="#option-cargo-clean---dry-run"></a><code>--dry-run</code></dt>
38+
<dd class="option-desc">Displays a summary of what would be deleted without deleting anything.
39+
Use with <code>--verbose</code> to display the actual files that would be deleted.</dd>
40+
41+
3742
<dt class="option-term" id="option-cargo-clean---doc"><a class="option-anchor" href="#option-cargo-clean---doc"></a><code>--doc</code></dt>
3843
<dd class="option-desc">This option will cause <code>cargo clean</code> to remove only the <code>doc</code> directory in
3944
the target directory.</dd>

src/etc/man/cargo-clean.1

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ multiple times. See \fBcargo\-pkgid\fR(1) for the SPEC format.
2525
.RE
2626
.SS "Clean Options"
2727
.sp
28+
\fB\-\-dry\-run\fR
29+
.RS 4
30+
Displays a summary of what would be deleted without deleting anything.
31+
Use with \fB\-\-verbose\fR to display the actual files that would be deleted.
32+
.RE
33+
.sp
2834
\fB\-\-doc\fR
2935
.RS 4
3036
This option will cause \fBcargo clean\fR to remove only the \fBdoc\fR directory in

0 commit comments

Comments
 (0)