aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index e9974b16a..764958032 100755
--- a/bin/brew
+++ b/bin/brew
@@ -88,7 +88,11 @@ begin
when '--repository'
puts HOMEBREW_REPOSITORY
when '--cellar'
- puts HOMEBREW_CELLAR
+ if ARGV.named.empty?
+ puts HOMEBREW_CELLAR
+ else
+ puts *ARGV.formulae.collect {|f| HOMEBREW_CELLAR+f.name}
+ end
when '--config'
dump_config