aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Contributions/manpages/brew.1.md4
-rw-r--r--share/man/man1/brew.13
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\.