aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/options.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 454a2c7ce..e72bdb0a5 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -1,10 +1,15 @@
require 'formula'
+require 'cmd/outdated'
def ff
if ARGV.include? "--all"
Formula.all
elsif ARGV.include? "--installed"
- Formula.all.reject{ |f| not f.installed? }
+ # outdated brews count as installed
+ outdated = Homebrew.outdated_brews.collect{ |b| b.name }
+ Formula.all.select do |f|
+ f.installed? or outdated.include? f.name
+ end
else
ARGV.formulae
end