diff --git a/src/doc/man/cargo-clean.md b/src/doc/man/cargo-clean.md index 8b9ef8cb6b0..ee920b22369 100644 --- a/src/doc/man/cargo-clean.md +++ b/src/doc/man/cargo-clean.md @@ -36,6 +36,11 @@ multiple times. See {{man "cargo-pkgid" 1}} for the SPEC format. {{#options}} +{{#option "`--dry-run`" }} +Displays a summary of what would be deleted without deleting anything. +Use with `--verbose` to display the actual files that would be deleted. +{{/option}} + {{#option "`--doc`" }} This option will cause `cargo clean` to remove only the `doc` directory in the target directory. diff --git a/src/doc/man/generated_txt/cargo-clean.txt b/src/doc/man/generated_txt/cargo-clean.txt index 33cebb719db..d6b7facf4e1 100644 --- a/src/doc/man/generated_txt/cargo-clean.txt +++ b/src/doc/man/generated_txt/cargo-clean.txt @@ -22,6 +22,11 @@ OPTIONS multiple times. See cargo-pkgid(1) for the SPEC format. Clean Options + --dry-run + Displays a summary of what would be deleted without deleting + anything. Use with --verbose to display the actual files that would + be deleted. + --doc This option will cause cargo clean to remove only the doc directory in the target directory. diff --git a/src/doc/src/commands/cargo-clean.md b/src/doc/src/commands/cargo-clean.md index df43479749a..b1415828b1f 100644 --- a/src/doc/src/commands/cargo-clean.md +++ b/src/doc/src/commands/cargo-clean.md @@ -34,6 +34,11 @@ multiple times. See cargo-pkgid(1) for the SPEC f
+
--dry-run
+
Displays a summary of what would be deleted without deleting anything. +Use with --verbose to display the actual files that would be deleted.
+ +
--doc
This option will cause cargo clean to remove only the doc directory in the target directory.
diff --git a/src/etc/man/cargo-clean.1 b/src/etc/man/cargo-clean.1 index 3cb321f05f0..d71b0e0270a 100644 --- a/src/etc/man/cargo-clean.1 +++ b/src/etc/man/cargo-clean.1 @@ -25,6 +25,12 @@ multiple times. See \fBcargo\-pkgid\fR(1) for the SPEC format. .RE .SS "Clean Options" .sp +\fB\-\-dry\-run\fR +.RS 4 +Displays a summary of what would be deleted without deleting anything. +Use with \fB\-\-verbose\fR to display the actual files that would be deleted. +.RE +.sp \fB\-\-doc\fR .RS 4 This option will cause \fBcargo clean\fR to remove only the \fBdoc\fR directory in