Merge pull request #4039 from MikeMcQuaid/openstruct-args-undef-tap
cli_parser: undefine OpenStruct instance tap.
This commit is contained in:
commit
775b6325b4
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user