On Apr 13, 2007, at 15:45 , ChrisKaelin wrote:

> Found it...
> I used
> opts.parse!(args)
> as from the example from rdoc of OptionParser. Instead I should have
> used:
> opts.parse(args)
> which does not pop the ARGV values.

Popping the args should be fine as long as you put them back. In  
fact, I'd say it is better because you can guarantee what you're  
dealing with. Start with ARGV.clear and put what you want in it each  
time through.