Hi,

At Tue, 21 Jan 2003 04:27:47 +0900,
Matt Armstrong wrote:
> ruby-cvs -roptparse -e 'ARGV.options{|opt|opt.on("--dir=[DIR]"){|d|@dir=d};opt.parse!};p self' -- --dir here
> #<Object:0x401b89fc @dir=nil>
> 
> Optional arguments are not "greedy" but I would expect them to be.

It sounds non-optional.  If it were "greedy", how do you omit
the option value?

-- 
Nobu Nakada