Merge pull request #7282 from GauthamGoli/argv-cleanup-20

Initialize Homebrew.args with CLI::Args instance
This commit is contained in:
Mike McQuaid 2020-04-05 16:28:36 +01:00 committed by GitHub
commit e1c7d9971f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ end
require "config"
require "os"
require "extend/ARGV"
require "cli/args"
require "messages"
require "system_command"
@ -83,7 +84,7 @@ module Homebrew
end
def args
@args ||= OpenStruct.new
@args ||= CLI::Args.new(argv: ARGV)
end
def messages