Merge pull request #14436 from MikeMcQuaid/cask_stage_only_string

cask/artifact/stage_only: allow string argument.
This commit is contained in:
Mike McQuaid 2023-01-26 11:59:02 +00:00 committed by GitHub
commit be67d6c9b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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