diff options
author | st0012 <stan001212@gmail.com> | 2022-10-05 12:44:13 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-15 10:08:30 +0000 |
commit | aecb7f6efc8422d98453128c80754121022b0766 (patch) | |
tree | 9ba2a506dbec051964955ecfd36345aa4d3871f9 /lib | |
parent | 34320d883f7197444fd240c68a65dd6cc6f395e3 (diff) | |
download | ruby-aecb7f6efc8422d98453128c80754121022b0766.tar.gz |
[ruby/irb] Deprecate USE_RELINE and USE_REIDLINE
Based on this commit: https://github.com/ruby/irb/commit/93f87ec65344b44123b0150a5fc07de1fd4c80c4
It appears that the maintainer @aycabta wanted to deprecate any `USE_*LINE` configs in favor of
`USE_MULTILINE`. So we should deprecate `USE_RELINE` as well.
https://github.com/ruby/irb/commit/478f19f3ae
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/context.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 72c74f081d..c5d98772b8 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -49,10 +49,13 @@ module IRB if IRB.conf.has_key?(:USE_MULTILINE) @use_multiline = IRB.conf[:USE_MULTILINE] elsif IRB.conf.has_key?(:USE_RELINE) # backward compatibility + warn <<~MSG.strip + USE_RELINE is deprecated, please use USE_MULTILINE instead. + MSG @use_multiline = IRB.conf[:USE_RELINE] elsif IRB.conf.has_key?(:USE_REIDLINE) warn <<~MSG.strip - USE_REIDLINE is deprecated, please use USE_RELINE instead. + USE_REIDLINE is deprecated, please use USE_MULTILINE instead. MSG @use_multiline = IRB.conf[:USE_REIDLINE] else |