diff options
| author | Jack Nagel | 2011-09-11 16:23:39 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2011-09-12 15:43:18 -0500 | 
| commit | 2313a4d2af555235f54eb7dbd426e708a5200e33 (patch) | |
| tree | 72d29c486516867297e73b3f32c214697f2d6386 /Library/Homebrew/cmd/options.rb | |
| parent | c9e91196b26dda89eb6fbda8e5d0a7dd53966d2a (diff) | |
| download | homebrew-2313a4d2af555235f54eb7dbd426e708a5200e33.tar.bz2 | |
brew-options: add --installed flag
`brew options --installed` will print options for formulae that are
already installed.
Closes #7565.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 2 | 
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 | 
