aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2009-11-19 13:59:24 -0800
committerAdam Vandenberg2009-11-19 14:03:08 -0800
commit411874e0b6ecb63eac333ec4aeb6d853da8807a6 (patch)
treefa5daf256b96cc20a969d1fe863e77c507dac785 /bin
parent7366a412681384df9716499f737e90d8bad03d84 (diff)
downloadbrew-411874e0b6ecb63eac333ec4aeb6d853da8807a6.tar.bz2
Add command 'brew info --all'.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 1151d88cc..530658a98 100755
--- a/bin/brew
+++ b/bin/brew
@@ -181,7 +181,15 @@ begin
when 'info', 'abv'
if ARGV.named.empty?
- puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
+ if ARGV.include? "--all"
+ require 'formula'
+ Formulary.names.each do |name|
+ info name
+ puts '---'
+ end
+ else
+ puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
+ end
elsif ARGV[0][0..6] == 'http://'
puts Pathname.new(ARGV.shift).version
else