diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index ef991dffac56068cfeb4f68df181440e45588896..ab0081824b784613fda9052e7d748016c223a1a7 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -184,7 +184,7 @@ For the full command list, see the COMMANDS section. If no <formulae> are given, check all installed brews. - * `options [--compact] [--all]` <formula>: + * `options [--compact] [--all] [--installed]` <formula>: Display install options specific to <formula>. If `--compact` is passed, show all options on a single line separated by @@ -192,6 +192,8 @@ For the full command list, see the COMMANDS section. If `--all` is passed, show options for all formulae. + If `--installed` is passed, show options for all installed formulae. + * `outdated [--quiet]`: Show formulae that have an updated version available. diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 8145e517b0548ba71062ef25f6e776702d7ff11b..454a2c7ce7b514d12c1413d289cc4911b15271d1 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -3,6 +3,8 @@ require 'formula' def ff if ARGV.include? "--all" Formula.all + elsif ARGV.include? "--installed" + Formula.all.reject{ |f| not f.installed? } else ARGV.formulae end diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index d2a72844acaab7fb933145af48909f3df8e89bfa..d6c9870efac2b07f2e5214ba89fc0133dd95fce3 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -206,7 +206,7 @@ Check the given \fIformulae\fR for missing dependencies\. If no \fIformulae\fR are given, check all installed brews\. . .TP -\fBoptions [\-\-compact] [\-\-all]\fR \fIformula\fR +\fBoptions [\-\-compact] [\-\-all] [\-\-installed]\fR \fIformula\fR Display install options specific to \fIformula\fR\. . .IP @@ -215,6 +215,9 @@ If \fB\-\-compact\fR is passed, show all options on a single line separated by s .IP If \fB\-\-all\fR is passed, show options for all formulae\. . +.IP +If \fB\-\-installed\fR is passed, show options for all installed formulae\. +. .TP \fBoutdated [\-\-quiet]\fR Show formulae that have an updated version available\.