mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
irb/init.rb: make sure ARGV refers to toplevel one
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
660d2d999a
commit
4fe2ca38c1
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
module IRB # :nodoc:
|
||||
|
||||
# initialize config
|
||||
def IRB.setup(ap_path, argv: ARGV)
|
||||
def IRB.setup(ap_path, argv: ::ARGV)
|
||||
IRB.init_config(ap_path)
|
||||
IRB.init_error
|
||||
IRB.parse_opts(argv: argv)
|
||||
|
@ -121,7 +121,7 @@ module IRB # :nodoc:
|
|||
end
|
||||
|
||||
# option analyzing
|
||||
def IRB.parse_opts(argv: ARGV)
|
||||
def IRB.parse_opts(argv: ::ARGV)
|
||||
load_path = []
|
||||
while opt = argv.shift
|
||||
case opt
|
||||
|
|
Loading…
Reference in a new issue