nobu.nokada
12/22/2004 3:56:00 PM
Hi,
At Thu, 23 Dec 2004 00:28:15 +0900,
Austin Ziegler wrote in [ruby-talk:124301]:
> > [ruby-dev:25048] about optparse specification
> > Minero Aoki claimed that optparse should not handle -L when --line
> > is given. It appears that anyone is not interested in this issue,
> > since there is no reply so far.
>
> Can you explain this a bit? If I do this:
>
> ARGV.options do |opts|
> opts.on('-L', '--line', ...) { |xx| ... }
> end
>
> Then it should. However, IMO optparse should NOT autovivify -L if I
> specify:
>
> ARGV.options do |opts|
> opts.on('--line', ...) { |xx| ... }
> end
>
> Or is this something else entirely?
Yes, and I'd changed the behavior as you and Aoki claimed.
--
Nobu Nakada