aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2011-09-11 16:23:39 -0500
committerJack Nagel2011-09-12 15:43:18 -0500
commitb0f55665666642f64034c2451e7c5f0d362539a3 (patch)
tree529a476dba9ec52a85f262544ccb94d71de343a0 /Library/Homebrew/cmd
parent346a97384819545f05891c6103950988e71829a1 (diff)
downloadbrew-b0f55665666642f64034c2451e7c5f0d362539a3.tar.bz2
brew-options: add --installed flag
`brew options --installed` will print options for formulae that are already installed. Closes Homebrew/homebrew#7565. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/options.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 8145e517b..454a2c7ce 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