diff options
author | Stan Lo <[email protected]> | 2022-12-08 19:10:19 +0000 |
---|---|---|
committer | git <[email protected]> | 2022-12-08 19:10:23 +0000 |
commit | 3956bb859c2442d34ea171db8f92f3e5895c43d9 (patch) | |
tree | 4800d4eb49ceadec321f37e644ab98fb1f597aa6 /lib/irb/cmd/help.rb | |
parent | 2cea8e014dbbbb68e4e8be367529b2beae564c54 (diff) |
[ruby/irb] Add "show_cmds" command to list all commands'
descriptions
(https://github.com/ruby/irb/pull/463)
https://github.com/ruby/irb/commit/7e857655ac
Diffstat (limited to 'lib/irb/cmd/help.rb')
-rw-r--r-- | lib/irb/cmd/help.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 0497c57457..3ef59f5eea 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -16,6 +16,9 @@ module IRB module ExtendCommand class Help < Nop + category "Context" + description "Enter the mode to look up RI documents." + def execute(*names) require 'rdoc/ri/driver' opts = RDoc::RI::Driver.process_args([]) |