ARGV#spec: allow pass default value

This commit is contained in:
Xu Cheng 2015-07-30 16:31:47 +08:00
parent 21eecbf1d6
commit 773db6a3ba

View File

@ -190,13 +190,13 @@ module HomebrewArgvExtension
private private
def spec def spec(default=:stable)
if include?("--HEAD") if include?("--HEAD")
:head :head
elsif include?("--devel") elsif include?("--devel")
:devel :devel
else else
:stable default
end end
end end