summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-05-18 12:28:27 +0900
committergit <svn-admin@ruby-lang.org>2023-05-18 03:28:31 +0000
commitb695f58d52ec047e44434c16c998c4a67d3e5571 (patch)
treedb91772ca200d3a31db56b6f74bc50c20ebb97d4 /lib/irb/extend-command.rb
parentcea9c30fa549885e36471f1782359df2bdcf895a (diff)
[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
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb6
1 files changed, 5 insertions, 1 deletions
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,11 +157,15 @@ 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"
],