cask/artifact/stage_only: allow string argument.
This is what's passed from the JSON API.
This commit is contained in:
parent
a1680aebe3
commit
61d6f7c4ca
@ -12,7 +12,7 @@ module Cask
|
||||
extend T::Sig
|
||||
|
||||
def self.from_args(cask, *args, **kwargs)
|
||||
if args != [true] || kwargs.present?
|
||||
if (args != [true] && args != ["true"]) || kwargs.present?
|
||||
raise CaskInvalidError.new(cask.token, "'stage_only' takes only a single argument: true")
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user