Merge pull request #14436 from MikeMcQuaid/cask_stage_only_string
cask/artifact/stage_only: allow string argument.
This commit is contained in:
commit
be67d6c9b5
@ -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