Bring up manpages and docs to match new changes

This commit is contained in:
Caleb Xu 2018-07-30 18:45:24 -04:00
parent 1003aa72c9
commit 8d8d235019
2 changed files with 8 additions and 7 deletions

View File

@ -790,17 +790,18 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note
* `edit` `formula`:
Open `formula` in the editor.
* `extract` [`--force`] [`--stdout`] `formula` `version` [`tap`]:
* `extract` [`--force`] `formula` `--tap=``tap` [`--version=``version`]:
Looks through repository history to find the `version` of `formula` and
creates a copy in `tap`/Formula/`formula`@`version`.rb. If the tap is
not installed yet, attempts to install/clone the tap before continuing.
A tap must be passed through `--tap` in order for `extract` to work.
If `--force` is passed, the file at the destination will be overwritten
if it already exists. Otherwise, existing files will be preserved.
If `--stdout` is passed, the file will be written to stdout on the
terminal instead of written to a file. A `tap` cannot be passed when
using `--stdout`.
If an argument is passed through `--version`, `version` of `formula`
will be extracted and placed in the destination tap. Otherwise, the most
recent version that can be found will be used.
* `formula` `formula`:
Display the path where `formula` is located.

View File

@ -727,14 +727,14 @@ Open all of Homebrew for editing\.
Open \fIformula\fR in the editor\.
.
.TP
\fBextract\fR [\fB\-\-force\fR] [\fB\-\-stdout\fR] \fIformula\fR \fIversion\fR [\fItap\fR]
Looks through repository history to find the \fIversion\fR of \fIformula\fR and creates a copy in \fItap\fR/Formula/\fIformula\fR@\fIversion\fR\.rb\. If the tap is not installed yet, attempts to install/clone the tap before continuing\.
\fBextract\fR [\fB\-\-force\fR] \fIformula\fR \fB\-\-tap=\fR\fItap\fR [\fB\-\-version=\fR\fIversion\fR]
Looks through repository history to find the \fIversion\fR of \fIformula\fR and creates a copy in \fItap\fR/Formula/\fIformula\fR@\fIversion\fR\.rb\. If the tap is not installed yet, attempts to install/clone the tap before continuing\. A tap must be passed through \fB\-\-tap\fR in order for \fBextract\fR to work\.
.
.IP
If \fB\-\-force\fR is passed, the file at the destination will be overwritten if it already exists\. Otherwise, existing files will be preserved\.
.
.IP
If \fB\-\-stdout\fR is passed, the file will be written to stdout on the terminal instead of written to a file\. A \fItap\fR cannot be passed when using \fB\-\-stdout\fR\.
If an argument is passed through \fB\-\-version\fR, \fIversion\fR of \fIformula\fR will be extracted and placed in the destination tap\. Otherwise, the most recent version that can be found will be used\.
.
.TP
\fBformula\fR \fIformula\fR