Merge pull request #4039 from MikeMcQuaid/openstruct-args-undef-tap

cli_parser: undefine OpenStruct instance tap.
This commit is contained in:
Mike McQuaid 2018-04-08 16:59:09 -07:00 committed by GitHub
commit 775b6325b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,8 @@ module Homebrew
def initialize(&block)
@parser = OptionParser.new
@parsed_args = OpenStruct.new
# undefine tap to allow --tap argument
@parsed_args.instance_eval { undef tap }
instance_eval(&block)
end