Remove ARGV_WITHOUT_MONKEY_PATCHING
Our usage of `ARGV` will go away soon enough and maintaining state between `ARGV` and `ARGV_WITHOUT_MONKEY_PATCHING` is futile. Fixes #7397
This commit is contained in:
parent
dad4249774
commit
af8091a279
@ -13,7 +13,7 @@ module Homebrew
|
||||
super
|
||||
|
||||
self[:remaining] = []
|
||||
self[:cmdline_args] = ARGV_WITHOUT_MONKEY_PATCHING.dup
|
||||
self[:cmdline_args] = ARGV.dup.freeze
|
||||
|
||||
@args_parsed = false
|
||||
@processed_options = []
|
||||
|
@ -40,7 +40,6 @@ require "cli/args"
|
||||
require "messages"
|
||||
require "system_command"
|
||||
|
||||
ARGV_WITHOUT_MONKEY_PATCHING = ARGV.dup.freeze
|
||||
ARGV.extend(HomebrewArgvExtension)
|
||||
|
||||
HOMEBREW_PRODUCT = ENV["HOMEBREW_PRODUCT"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user