diff options
author | st0012 <stan001212@gmail.com> | 2022-10-05 12:42:01 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-15 10:08:29 +0000 |
commit | 34320d883f7197444fd240c68a65dd6cc6f395e3 (patch) | |
tree | efdf543ca46212fe6824d2a0574f01295f1d2e86 /lib | |
parent | 4f348e482c2b539aaf535ac3dabc07fed6718e59 (diff) | |
download | ruby-34320d883f7197444fd240c68a65dd6cc6f395e3.tar.gz |
[ruby/irb] Deprecate reidline flags
https://github.com/ruby/irb/commit/9957e83f7d
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/init.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 8c9d473b74..831d7d811a 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -260,8 +260,20 @@ module IRB # :nodoc: when "--nosingleline", "--noreadline" @CONF[:USE_SINGLELINE] = false when "--multiline", "--reidline" + if opt == "--reidline" + warn <<~MSG.strip + --reidline is deprecated, please use --multiline instead. + MSG + end + @CONF[:USE_MULTILINE] = true when "--nomultiline", "--noreidline" + if opt == "--noreidline" + warn <<~MSG.strip + --noreidline is deprecated, please use --nomultiline instead. + MSG + end + @CONF[:USE_MULTILINE] = false when /^--extra-doc-dir(?:=(.+))?/ opt = $1 || argv.shift |