ruby-win32/lib/ruby/site_ruby/1.8/rubygems/command.rb
def add_option(*opts, &handler) # :yields: value, options
      group_name = Symbol === opts.first ? opts.shift : :options

      @option_groups[group_name] << [opts, handler]
    end
# Add a command-line option and handler to the command.
#
# See OptionParser#make_switch for an explanation of +opts+.
#
# +handler+ will be called with two values, the value of the argument and
# the options hash.
Add a command-line option and handler to the command.
See OptionParser#make_switch for an explanation of +opts+.

+handler+ will be called with two values, the value of the argument and
the options hash.
Add a command - line option and handler to the command . See OptionParser#make_switch for an explanation of + opts + . + handler + will be called with two values the value of the argument and the options hash .
def add_option(*opts, &handler) 
      group_name = Symbol === opts.first ? opts.shift : :options
      @option_groups[group_name] << [opts, handler]
    end
def add_option ( * opts , & handler ) group_name = Symbol === opts . first ? opts . shift : :options @option_groups [ group_name ] << [ opts , handler ] end
Add a command-line option and handler to the command.
Add a command - line option and handler to the command .
# :yields: value, options
opts
handler