aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index e582620bb..7b5df314e 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -177,7 +177,9 @@ module Homebrew
end
end
- root_url = ARGV.value("root_url")
+ root_url = ARGV.value("root-url")
+ # Use underscored version for legacy reasons. Remove at some point.
+ root_url ||= ARGV.value("root_url")
bottle = BottleSpecification.new
bottle.root_url(root_url) if root_url