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.
This commit is contained in:
Misty De Meo 2014-02-09 13:27:56 -08:00
parent 3805df0b44
commit b1c0380b7b
2 changed files with 1 additions and 5 deletions

View File

@ -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"

View File

@ -111,7 +111,7 @@ module HomebrewArgvExtension
end
def build_head?
include? '--HEAD'
include?('--HEAD') || include?('--head')
end
def build_devel?