cask/artifact/stage_only: allow string argument.

This is what's passed from the JSON API.
This commit is contained in:
Mike McQuaid 2023-01-26 11:22:18 +00:00
parent a1680aebe3
commit 61d6f7c4ca
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -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