OptionParser::Switch::OptionalArgument

class OptionParser::Switch::OptionalArgument

Parent:
self

Switch that can omit argument.

Public Instance Methods

parse(arg, argv, &error) Show source

Parses argument if given, or uses default value.

# File lib/optparse.rb, line 688
def parse(arg, argv, &error)
  if