Hi,

At Tue, 15 Jan 2008 15:09:58 +0900,
Tom Metge wrote in [ruby-talk:287471]:
> require 'optparse'
> class MyClass
>    def initialize(arguments)
>      @options = {}
       print_param = false
>      opts = OptionParser.new
>      opts.on('--some-param [PARAM]') {|param| @options[:param] = param}
       opts.on('--print-param') { print_param = true }
>      opts.parse!
       puts @options[:param] if print_param
>    end
> end
> MyClass.new(ARGV)

-- 
Nobu Nakada