summaryrefslogtreecommitdiff
path: root/lib/irb/context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r--lib/irb/context.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index f529787bae..94def5fc6a 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -82,6 +82,12 @@ module IRB
case use_multiline?
when nil
if STDIN.tty? && IRB.conf[:PROMPT_MODE] != :INF_RUBY && !use_singleline?
+ # Both of multiline mode and singleline mode aren't specified.
+ puts <<~EOM
+ This version of IRB is drastically different from the previous version.
+ If you hit any issues, you can use "irb --legacy" to run the old version.
+ If you want to just erase this message, please use "irb --multiline".
+ EOM
@io = ReidlineInputMethod.new
else
@io = nil