[Uw-ruby] parsing non-switch options in OptionParser
Jonathan Shakes
jonathan.shakes at gmail.com
Thu Nov 15 11:51:41 PST 2007
My interpretation of "OptionParser" is that it handles Options, not the
stuff outside options. Hence the name.
Doing it outside OptionParser seems pretty clean to me.
-Jonathan Shakes
On Nov 15, 2007 11:14 AM, Dan McHarness <dmcharness at yahoo.com> 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.
>
> I can easily grab the remainder of the arguments
> outside of OptionParser, but I was hoping for a
> cleaner way of doing it inside OptionParser instead.
>
> any ideas?
>
>
>
> ____________________________________________________________________________________
> Get easy, one-click access to your favorites.
> Make Yahoo! your homepage.
> http://www.yahoo.com/r/hs
> _______________________________________________
> Uw-ruby mailing list
> Uw-ruby at zenspider.com
> http://www.zenspider.com/mailman/listinfo/uw-ruby
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.zenspider.com/pipermail/uw-ruby/attachments/20071115/1bb5fc6b/attachment.html
More information about the Uw-ruby
mailing list