aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/--repository.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/--repository.rb b/Library/Homebrew/cmd/--repository.rb
index e2a5feb13..b697b3eaa 100644
--- a/Library/Homebrew/cmd/--repository.rb
+++ b/Library/Homebrew/cmd/--repository.rb
@@ -1,5 +1,11 @@
+require "tap"
+
module Homebrew
def __repository
- puts HOMEBREW_REPOSITORY
+ if ARGV.named.empty?
+ puts HOMEBREW_REPOSITORY
+ else
+ puts ARGV.named.map { |tap| Tap.fetch(tap).path }
+ end
end
end