Ruby Core Documentation 1.8.7
OptionParser
Completion
NoArgument
OptionMap
OptionalArgument
PlacedArgument
RequiredArgument
Switch
constants
|
attributes
|
methods
Class
OptionParser::OptionalArgument
Inheritance
< self
Switch
that can omit argument.
Methods
Instance
Visibility
Signature
public
parse
(arg, argv, &error)
Instance Method Detail
parse
(arg, argv, &error)
Parses argument if given, or uses default value.