From: 7stud -- Date: 2008-02-20T14:20:41+09:00 Subject: Re: optparse: parse v. parse! ?? 7stud -- wrote: > Nobuyoshi Nakada wrote: >> Hi, >> >> At Wed, 20 Feb 2008 11:57:09 +0900, >> 7stud -- wrote in [ruby-talk:291731]: >>> which indicates that none of the on() handlers executed. My reading of >>> parse() is that it's the same as parse!() except that parse() doesn't >>> remove the option/values from ARGV. >> >> No, parse doesn't have default arguments. > > Huh? Well, after scanning through the docs again, I found this in one of the examples: options = OptparseExample.parse(ARGV) ...and now your cryptic post makes sense. Usage ------ opts.parse! #removes options/values from ARGV opts.parse(ARGV) #doesn't change ARGV -- Posted via http://www.ruby-forum.com/.