From be5159c2f8c2e41b727ed2149486458b42ca4c07 Mon Sep 17 00:00:00 2001 From: Filip Pyda Date: Fri, 16 Jul 2021 10:35:00 +0200 Subject: [PATCH] [ruby/irb] Pass RI options to help https://github.com/ruby/irb/commit/9b98d1afab --- 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 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