1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Enable deprecation warnings when using -W or -w

Requested in Ruby Bug 17377

https://github.com/ruby/irb/commit/698f6eb34a
This commit is contained in:
Jeremy Evans 2020-12-08 08:56:01 -08:00 committed by aycabta
parent 336fe648b0
commit 753222d72c

View file

@ -131,7 +131,7 @@ module IRB # :nodoc:
$DEBUG = true
$VERBOSE = true
when "-w"
$VERBOSE = true
Warning[:deprecated] = $VERBOSE = true
when /^-W(.+)?/
opt = $1 || argv.shift
case opt
@ -140,7 +140,7 @@ module IRB # :nodoc:
when "1"
$VERBOSE = false
else
$VERBOSE = true
Warning[:deprecated] = $VERBOSE = true
end
when /^-r(.+)?/
opt = $1 || argv.shift