ARGV#spec: allow pass default value
This commit is contained in:
parent
21eecbf1d6
commit
773db6a3ba
@ -190,13 +190,13 @@ module HomebrewArgvExtension
|
||||
|
||||
private
|
||||
|
||||
def spec
|
||||
def spec(default=:stable)
|
||||
if include?("--HEAD")
|
||||
:head
|
||||
elsif include?("--devel")
|
||||
:devel
|
||||
else
|
||||
:stable
|
||||
default
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user