diff options
| author | Adam Vandenberg | 2014-05-16 11:14:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-16 11:14:58 -0700 |
| commit | a77c58dec08586de5761224025a0cbd38fd9d167 (patch) | |
| tree | b5d248d944fdc966e81a5ce66a8dbe13c47611c8 | |
| parent | 326d3e07e913cdcaab2191c71a49ecdbee8a6973 (diff) | |
| download | brew-a77c58dec08586de5761224025a0cbd38fd9d167.tar.bz2 | |
more explicit documentation for brew info --json=v1
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 4 | ||||
| -rw-r--r-- | share/man/man1/brew.1 | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 21b839917..9177fffc2 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -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 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 <formula>. diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 0632160d6..de976b5e4 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -183,6 +183,9 @@ Print a JSON representation of \fIformula\fR\. Currently the only accepted value .IP 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 \fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR Install \fIformula\fR\. |
