Switch that takes an argument.

Methods
P
Instance Public methods
parse(arg, argv)

Raises an exception if argument is not present.

# File lib/optparse.rb, line 449
def parse(arg, argv)
  unless arg
    raise MissingArgument if argv.empty?
    arg = argv.shift
  end
  conv_arg(*parse_arg(arg) {|*exc| raise(*exc)})
end