ARGV: use include? for --HEAD

ARGV.build_head? will return true if the typo '-HEAD' is passed because
it uses flag? to detect the option. However, we only filter the exact
spelling of '--HEAD' in ARGV.filter_for_dependencies, and thus the HEAD
property is undesirably passed to deps during installation.

Since we never advertised '-H' as a valid short option for '--HEAD',
just use include? instead of flag?.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel committed 2012-04-10 21:53:01 -05:00
1 parent 674f4c015b
commit b7a4bc644a
1 file changed
+1 -1
+1 -1
View File
@@ -89,7 +89,7 @@ module HomebrewArgvExtension
end
def build_head?
flag? '--HEAD'
include? '--HEAD'
end
def build_devel?