cli/args: add class to handle arguments.
This commit is contained in:
parent
34a8ab74af
commit
e9806b6b55
15
Library/Homebrew/cli/args.rb
Normal file
15
Library/Homebrew/cli/args.rb
Normal file
@ -0,0 +1,15 @@
|
||||
require "ostruct"
|
||||
|
||||
module Homebrew
|
||||
module CLI
|
||||
class Args < OpenStruct
|
||||
# undefine tap to allow --tap argument
|
||||
undef tap
|
||||
|
||||
def initialize(argv:)
|
||||
super
|
||||
@argv = argv
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user