From b695f58d52ec047e44434c16c998c4a67d3e5571 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Thu, 18 May 2023 12:28:27 +0900 Subject: [ruby/irb] Print deprecation warning for `help` command (https://github.com/ruby/irb/pull/567) * Give show_doc its own command class * Print deprecation warning for `help` command --- lib/irb/extend-command.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/irb/extend-command.rb') diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index 1a252bb42a..e377148fb4 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -157,10 +157,14 @@ module IRB # :nodoc: [ :irb_help, :Help, "cmd/help", - [:show_doc, NO_OVERRIDE], [:help, NO_OVERRIDE], ], + [ + :irb_show_doc, :ShowDoc, "cmd/show_doc", + [:show_doc, NO_OVERRIDE], + ], + [ :irb_info, :IrbInfo, "cmd/irb_info" ], -- cgit v1.2.1