diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 11:32:37 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 11:32:37 +0000 |
commit | 4fe2ca38c1cde063b09d8e015e64f8964ebb25b4 (patch) | |
tree | 9968051995faf3b1529824b07d4a7f77b11d8f9c /lib/irb/init.rb | |
parent | 660d2d999aeef5bbde4f9464919018652c8a3959 (diff) |
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
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index c9f927fdd8..db03340a69 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -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 |