diff options
| author | Filip Pyda <filip.pyda@gmail.com> | 2021-07-16 10:35:00 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2021-09-06 07:10:27 +0900 |
| commit | be5159c2f8c2e41b727ed2149486458b42ca4c07 (patch) | |
| tree | e33f188e250ea0822e17ed43b7fe0bb0a9d5573e /lib | |
| parent | 97a569c648acf489c9fd5602cc4ecc8a012bb07b (diff) | |
[ruby/irb] Pass RI options to help
https://github.com/ruby/irb/commit/9b98d1afab
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/irb/cmd/help.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 0629479e92..d82e78fb57 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -17,7 +17,8 @@ module IRB class Help < Nop def execute(*names) require 'rdoc/ri/driver' - IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new) + opts = RDoc::RI::Driver.process_args([]) + IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new(opts)) rescue LoadError, SystemExit IRB::ExtendCommand::Help.remove_method(:execute) # raise NoMethodError in ensure |
