[ruby/irb] Deprecate USE_RELINE and USE_REIDLINE

Based on this commit: 93f87ec653

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
This commit is contained in:
st0012 2022-10-05 12:44:13 +01:00 committed by git
parent 34320d883f
commit aecb7f6efc

View File

@ -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