summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2022-12-08 21:46:51 +0000
committergit <svn-admin@ruby-lang.org>2022-12-08 21:46:55 +0000
commitc9076d546aae9dbcb7da404aada7ce8d23e2273b (patch)
treeed88cf7de6f4a8e762c3bc43858cdb11c0bfdbaf /lib/irb/extend-command.rb
parent12b7c129bf8ed3a113e2cc73f817868507504268 (diff)
[ruby/irb] Add show_doc as an alias to the help command
(https://github.com/ruby/irb/pull/475) In the long-term, we want to align with `Pry`, `byebug` and `debug` to use the `help` command to list all commands, which is what `show_cmds` currently does. And `show_doc` will be the command to look up Ruby APIs. By aliasing `show_doc` to the current `help` now, users will have time to get use to it.
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index 9fa2ce5d86..d0829a06c4 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -162,6 +162,7 @@ module IRB # :nodoc:
[
:irb_help, :Help, "cmd/help",
+ [:show_doc, NO_OVERRIDE],
[:help, NO_OVERRIDE],
],