manpage: add unlink --dry-run

This commit is contained in:
Xu Cheng 2015-09-06 15:37:47 +08:00
parent 9581ab64e3
commit 5eab79e70f
3 changed files with 14 additions and 5 deletions

View File

@ -429,11 +429,14 @@ Note that these flags should only appear after a command.
Example: `brew install jruby && brew test jruby`
* `unlink` <formula>:
* `unlink [--dry-run]` <formula>:
Remove symlinks for <formula> from the Homebrew prefix. This can be useful
for temporarily disabling a formula:
`brew unlink foo && commands && brew link foo`.
If `--dry-run` or `-n` is passed, Homebrew will list all files which would
be unlinked, but will not actually unlink or delete any files.
* `unlinkapps [--local]` [<formulae>]:
Removes links created by `brew linkapps`.

View File

@ -378,10 +378,13 @@ formula.</p>
launched with access to IRB or a shell inside the temporary test directory.</p>
<p>Example: <code>brew install jruby &amp;&amp; brew test jruby</code></p></li>
<li><p><code>unlink</code> <var>formula</var>:
<li><p><code>unlink [--dry-run]</code> <var>formula</var>:
Remove symlinks for <var>formula</var> from the Homebrew prefix. This can be useful
for temporarily disabling a formula:
<code>brew unlink foo &amp;&amp; commands &amp;&amp; brew link foo</code>.</p></li>
<code>brew unlink foo &amp;&amp; commands &amp;&amp; brew link foo</code>.</p>
<p>If <code>--dry-run</code> or <code>-n</code> is passed, Homebrew will list all files which would
be unlinked, but will not actually unlink or delete any files.</p></li>
<li><p><code>unlinkapps [--local]</code> [<var>formulae</var>]:
Removes links created by <code>brew linkapps</code>.</p>

View File

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BREW" "1" "August 2015" "Homebrew" "brew"
.TH "BREW" "1" "September 2015" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The missing package manager for OS X
@ -409,7 +409,10 @@ If \fB\-\-debug\fR is passed and the test fails, an interactive debugger will be
Example: \fBbrew install jruby && brew test jruby\fR
.
.IP "\(bu" 4
\fBunlink\fR \fIformula\fR: Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful for temporarily disabling a formula: \fBbrew unlink foo && commands && brew link foo\fR\.
\fBunlink [\-\-dry\-run]\fR \fIformula\fR: Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful for temporarily disabling a formula: \fBbrew unlink foo && commands && brew link foo\fR\.
.
.IP
If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, Homebrew will list all files which would be unlinked, but will not actually unlink or delete any files\.
.
.IP "\(bu" 4
\fBunlinkapps [\-\-local]\fR [\fIformulae\fR]: Removes links created by \fBbrew linkapps\fR\.