aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMisty De Meo2014-02-09 13:27:56 -0800
committerMisty De Meo2014-02-09 15:44:49 -0800
commitb1c0380b7be99b4e81b26e6d5b9ad2ae088e0a50 (patch)
treeda5b22c9a3477eab3a19fcf4f6e41ca89659b200 /Library/Homebrew
parent3805df0b4443eaa7a5132dd024b8cee860f9cb2f (diff)
downloadbrew-b1c0380b7be99b4e81b26e6d5b9ad2ae088e0a50.tar.bz2
Recognize --head as an alias for --HEAD
Homebrew currently recognizes "--head" during the install process, but rather than actually fetch HEAD it just nags the user to use the correct option. Since we recognize the spelling anyway, this just promotes the lowercase version to an official alias. Closes Homebrew/homebrew#26555.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/install.rb4
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
2 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 4e1705c74..468eb3d37 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -19,10 +19,6 @@ module Homebrew extend self
end
end
- if ARGV.include? '--head'
- raise "Specify `--HEAD` in uppercase to build from trunk."
- end
-
ARGV.named.each do |name|
# if a formula has been tapped ignore the blacklisting
if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb"
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index c2e1a9c2e..7b0a11311 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -111,7 +111,7 @@ module HomebrewArgvExtension
end
def build_head?
- include? '--HEAD'
+ include?('--HEAD') || include?('--head')
end
def build_devel?