cli_parser: undefine OpenStruct instance tap.

Undefine `tap` to allow `--tap` arguments to work as expected.
This commit is contained in:
Mike McQuaid 2018-04-08 16:40:02 -07:00
parent c73e873893
commit daf118971c

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