From f243163b899a57a6323807b7ab2f93585d6ce23d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 7 Apr 2014 13:16:08 -0500 Subject: [PATCH] Document behavior of `deps` and `uses` when given multiple arguments --- Library/Contributions/manpages/brew.1.md | 12 ++++++++---- share/man/man1/brew.1 | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index e27fa8f275..3bfd19e996 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -84,8 +84,10 @@ Note that these flags should only appear after a command. The options `--set-name` and `--set-version` each take an argument and allow you to explicitly set the name and version of the package you are creating. - * `deps [--1] [-n] [--tree] [--all] [--installed]` : - Show 's dependencies. + * `deps [--1] [-n] [--tree] [--all] [--installed]` : + Show dependencies for . When given multiple formula arguments, + show the intersection of dependencies for , except when passed + `--tree`, `--all`, or `--installed`. If `--1` is passed, only show dependencies one level down, instead of recursing. @@ -355,8 +357,10 @@ Note that these flags should only appear after a command. If are given, upgrade only the specified brews (but do so even if they are pinned; see `pin`, `unpin`). - * `uses [--installed] [--recursive] [--devel|--HEAD]` : - Show the formulae that specify as a dependency. + * `uses [--installed] [--recursive] [--devel|--HEAD]` : + Show the formulae that specify as a dependency. When given + multiple formula arguments, show the intersection of formulae that use + . Use `--recursive` to resolve more than one level of dependencies. diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index f0fa7736f5..756b431065 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -91,8 +91,8 @@ If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the ca The options \fB\-\-set\-name\fR and \fB\-\-set\-version\fR each take an argument and allow you to explicitly set the name and version of the package you are creating\. . .TP -\fBdeps [\-\-1] [\-n] [\-\-tree] [\-\-all] [\-\-installed]\fR \fIformula\fR -Show \fIformula\fR\'s dependencies\. +\fBdeps [\-\-1] [\-n] [\-\-tree] [\-\-all] [\-\-installed]\fR \fIformulae\fR +Show dependencies for \fIformulae\fR\. When given multiple formula arguments, show the intersection of dependencies for \fIformulae\fR, except when passed \fB\-\-tree\fR, \fB\-\-all\fR, or \fB\-\-installed\fR\. . .IP If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\. @@ -381,8 +381,8 @@ Options for the \fBinstall\fR command are also valid here\. If \fIformulae\fR are given, upgrade only the specified brews (but do so even if they are pinned; see \fBpin\fR, \fBunpin\fR)\. . .TP -\fBuses [\-\-installed] [\-\-recursive] [\-\-devel|\-\-HEAD]\fR \fIformula\fR -Show the formulae that specify \fIformula\fR as a dependency\. +\fBuses [\-\-installed] [\-\-recursive] [\-\-devel|\-\-HEAD]\fR \fIformulae\fR +Show the formulae that specify \fIformulae\fR as a dependency\. When given multiple formula arguments, show the intersection of formulae that use \fIformulae\fR\. . .IP Use \fB\-\-recursive\fR to resolve more than one level of dependencies\.