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
--verbose
to display the actual files that would be deleted.--doc
cargo clean
to remove only the doc
directory in
the target directory.