From 9b98d1afabc7103ce735bc2b6413f8f25d6f2003 Mon Sep 17 00:00:00 2001 From: Filip Pyda Date: Fri, 16 Jul 2021 10:35:00 +0200 Subject: [PATCH] Pass RI options to help --- lib/irb/cmd/help.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 0629479e9..d82e78fb5 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -17,7 +17,8 @@ module ExtendCommand 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