Skip to content

Commit 9b98d1a

Browse files
committed
Pass RI options to help
1 parent e0de4cf commit 9b98d1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/irb/cmd/help.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module ExtendCommand
1717
class Help < Nop
1818
def execute(*names)
1919
require 'rdoc/ri/driver'
20-
IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new)
20+
opts = RDoc::RI::Driver.process_args([])
21+
IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new(opts))
2122
rescue LoadError, SystemExit
2223
IRB::ExtendCommand::Help.remove_method(:execute)
2324
# raise NoMethodError in ensure

0 commit comments

Comments
 (0)