aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-06 08:14:27 +0100
committerMartin Afanasjew2016-01-06 08:18:59 +0100
commit53e1ba327400f809ed9279aa6eadbe5a47290e76 (patch)
tree066f7d67210d0f1cba439ad77d5ee720d33b83b1
parent8161595015736d52fcdf4017037155734326e57b (diff)
downloadbrew-53e1ba327400f809ed9279aa6eadbe5a47290e76.tar.bz2
manpage: document '--dry-run' for 'prune' command
-rw-r--r--Library/Homebrew/manpages/brew.1.md5
-rw-r--r--share/doc/homebrew/brew.1.html7
-rw-r--r--share/man/man1/brew.15
3 files changed, 13 insertions, 4 deletions
diff --git a/Library/Homebrew/manpages/brew.1.md b/Library/Homebrew/manpages/brew.1.md
index aeb54be14..294b34fb0 100644
--- a/Library/Homebrew/manpages/brew.1.md
+++ b/Library/Homebrew/manpages/brew.1.md
@@ -343,10 +343,13 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
Pin the specified <formulae>, preventing them from being upgraded when
issuing the `brew upgrade` command. See also `unpin`.
- * `prune`:
+ * `prune` [`--dry-run`]:
Remove dead symlinks from the Homebrew prefix. This is generally not
needed, but can be useful when doing DIY installations.
+ If `--dry-run` or `-n` is passed, show what would be removed, but do not
+ actually remove anything.
+
* `reinstall` <formula>:
Uninstall then install <formula>
diff --git a/share/doc/homebrew/brew.1.html b/share/doc/homebrew/brew.1.html
index 54856e9a4..bc724c34c 100644
--- a/share/doc/homebrew/brew.1.html
+++ b/share/doc/homebrew/brew.1.html
@@ -271,8 +271,11 @@ precedence over <code>--verbose</code>).</p>
valid version is <code>v1</code>.</p></dd>
<dt><code>pin</code> <var>formulae</var></dt><dd><p>Pin the specified <var>formulae</var>, preventing them from being upgraded when
issuing the <code>brew upgrade</code> command. See also <code>unpin</code>.</p></dd>
-<dt class="flush"><code>prune</code></dt><dd><p>Remove dead symlinks from the Homebrew prefix. This is generally not
-needed, but can be useful when doing DIY installations.</p></dd>
+<dt><code>prune</code> [<code>--dry-run</code>]</dt><dd><p>Remove dead symlinks from the Homebrew prefix. This is generally not
+needed, but can be useful when doing DIY installations.</p>
+
+<p>If <code>--dry-run</code> or <code>-n</code> is passed, show what would be removed, but do not
+actually remove anything.</p></dd>
<dt><code>reinstall</code> <var>formula</var></dt><dd><p>Uninstall then install <var>formula</var></p></dd>
<dt><code>rm</code>, <code>remove</code>, <code>uninstall</code> [<code>--force</code>] <var>formula</var></dt><dd><p>Uninstall <var>formula</var>.</p>
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 882c2ee7c..838609a8a 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -367,9 +367,12 @@ If \fB\-\-json=\fR\fIversion\fR is passed, the output will be in JSON format\. T
Pin the specified \fIformulae\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR command\. See also \fBunpin\fR\.
.
.TP
-\fBprune\fR
+\fBprune\fR [\fB\-\-dry\-run\fR]
Remove dead symlinks from the Homebrew prefix\. This is generally not needed, but can be useful when doing DIY installations\.
.
+.IP
+If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, show what would be removed, but do not actually remove anything\.
+.
.TP
\fBreinstall\fR \fIformula\fR
Uninstall then install \fIformula\fR