[Uw-ruby] parsing non-switch options in OptionParser

Ryan Davis ryand-uwruby at zenspider.com
Fri Nov 16 15:35:57 PST 2007


On Nov 15, 2007, at 11:14 , Dan McHarness wrote:

> I've found parsing the switch arguments in
> OptionParser straight forward enough, but scanning
> thru the optparse.rb code I haven't yet figured out
> how to grab the subsequent non-switch variable number
> arguments such as needed for the pgrep assignment.

You don't. they're left in ARGV once OptionParser is done.




More information about the Uw-ruby mailing list