aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-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