nobu.nokada
11/6/2003 2:05:00 AM
Hi,
At Wed, 5 Nov 2003 00:26:25 +0900,
Christian von Mueffling wrote:
> I got the follwing script:
> ------------------------------------------------------------------------------
> require 'optparse'
> ARGV.options { |opts|
> opts.on("-m=A", String) { |m| puts m }
> opts.parse!
> }
> ------------------------------------------------------------------------------
> hostname:~/tmp$ ./r.rb -m a
> a
> hostname:~/tmp$ ./r.rb -M a
> M
> hostname:~/tmp$ ./r.rb -Ma
> Ma
> ------------------------------------------------------------------------------
>
> I think I shouldn't be able to use '-M' without an error message,
> right?
Right, fixed now. Thank you.
--
Nobu Nakada