summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/irb/init.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index e60b5266ff..48b669f211 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -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