Merge pull request #10301 from hyuraku/cmd/cleanup_add_desc_about_all_to_prune

cmd/cleanup: add description about all to --prune
This commit is contained in:
Mike McQuaid 2021-01-22 14:57:13 +00:00 committed by GitHub
commit 2268e774a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,8 @@ module Homebrew
#{days} days old. This can be adjusted with `HOMEBREW_CLEANUP_MAX_AGE_DAYS`.
EOS
flag "--prune=",
description: "Remove all cache files older than specified <days>."
description: "Remove all cache files older than specified <days>. "\
"If you want to remove everything, use `--prune=all`."
switch "-n", "--dry-run",
description: "Show what would be removed, but do not actually remove anything."
switch "-s",

View File

@ -77,7 +77,7 @@ only do this for the given formulae and casks. Removes all downloads more than
120 days old. This can be adjusted with `HOMEBREW_CLEANUP_MAX_AGE_DAYS`.
* `--prune`:
Remove all cache files older than specified *`days`*.
Remove all cache files older than specified *`days`*. If you want to remove everything, use `--prune=all`.
* `-n`, `--dry-run`:
Show what would be removed, but do not actually remove anything.
* `-s`:

View File

@ -68,7 +68,7 @@ Remove stale lock files and outdated downloads for all formulae and casks, and r
.
.TP
\fB\-\-prune\fR
Remove all cache files older than specified \fIdays\fR\.
Remove all cache files older than specified \fIdays\fR\. If you want to remove everything, use \fB\-\-prune=all\fR\.
.
.TP
\fB\-n\fR, \fB\-\-dry\-run\fR