Skip to content
Snippets Groups Projects
Commit 96e1d7e1 authored by Gautham G's avatar Gautham G
Browse files

Initialize Homebrew.args with CLI::Args instance

If we initialize it with OpenStruct, then methods defined in CLI::Args
cannot be called and they would always return nil leading to bugs
parent b9fc765e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment