From: Ilmari Heikkinen Date: 2005-01-18T13:55:00+09:00 Subject: Re: [ANN] IHelp 0.2.0 On 18.1.2005, at 04:30, Brian McCallister wrote: > I get > > irb(main):001:0> require 'ihelp' > > unrecognized option `--readline' > > For help on options, try 'ri --help' > > brianm@kite:~/work/ihelp-0.2.0$ > > I suspect stemming from my .irbrc which looks like: > > require 'irb/completion' > ARGV.concat [ "--readline", "--prompt-mode", "simple" ] > > IRB.conf[:AUTO_INDENT] = true > > def ri(*names) > system(%{ri #{names.map {|name| name.to_s}.join(" ")}}) > end > > > When i comment out the ARGV additions it works fine. Thank you, that's a good catch. The problem is in IHelp using RiDriver carelessly -- RiDriver#initialize uses ARGV for its options. Subclassed it to redefine #initialize to take the options as a parameter. (And added ARGV to test unit setup.) Could you try the following and see if it works better now? http://dark.fhtr.org/repos/ihelp/lib/ihelp.rb -- Ilmari Heikkinen