From 2313a4d2af555235f54eb7dbd426e708a5200e33 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 11 Sep 2011 16:23:39 -0500 Subject: brew-options: add --installed flag `brew options --installed` will print options for formulae that are already installed. Closes #7565. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/options.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3