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:
parent
336fe648b0
commit
753222d72c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue