more explicit documentation for brew info --json=v1

This commit is contained in:
Adam Vandenberg 2014-05-16 11:14:58 -07:00
parent 326d3e07e9
commit a77c58dec0
2 changed files with 7 additions and 0 deletions

View File

@ -167,6 +167,10 @@ Note that these flags should only appear after a command.
Pass `--all` to get information on all formulae, or `--installed` to get Pass `--all` to get information on all formulae, or `--installed` to get
information on all installed formulae. information on all installed formulae.
If a single formula is specified, a single JSON object is displayed.
If multiple formulae are specified, or `--installed` or `--all` are used,
a JSON array is displayed, even if the array would only contain one object.
* `install [--debug] [--env=<std|super>] [--ignore-dependencies] [--only-dependencies] [--cc=<compiler>] [--build-from-source] [--devel|--HEAD]` <formula>: * `install [--debug] [--env=<std|super>] [--ignore-dependencies] [--only-dependencies] [--cc=<compiler>] [--build-from-source] [--devel|--HEAD]` <formula>:
Install <formula>. Install <formula>.

View File

@ -183,6 +183,9 @@ Print a JSON representation of \fIformula\fR\. Currently the only accepted value
.IP .IP
Pass \fB\-\-all\fR to get information on all formulae, or \fB\-\-installed\fR to get information on all installed formulae\. Pass \fB\-\-all\fR to get information on all formulae, or \fB\-\-installed\fR to get information on all installed formulae\.
. .
.IP
If a single formula is specified, a single JSON object is displayed\. If multiple formulae are specified, or \fB\-\-installed\fR or \fB\-\-all\fR are used, a JSON array is displayed, even if the array would only contain one object\.
.
.TP .TP
\fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR \fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR
Install \fIformula\fR\. Install \fIformula\fR\.