cli_parser: undefine OpenStruct instance tap.
Undefine `tap` to allow `--tap` arguments to work as expected.
This commit is contained in:
parent
c73e873893
commit
daf118971c
@ -11,6 +11,8 @@ module Homebrew
|
|||||||
def initialize(&block)
|
def initialize(&block)
|
||||||
@parser = OptionParser.new
|
@parser = OptionParser.new
|
||||||
@parsed_args = OpenStruct.new
|
@parsed_args = OpenStruct.new
|
||||||
|
# undefine tap to allow --tap argument
|
||||||
|
@parsed_args.instance_eval { undef tap }
|
||||||
instance_eval(&block)
|
instance_eval(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user