Returns a new parser by concatenating the given option.
Returns a new parser by concatenating the given option.
the option to concatenate
a new parser by concatenating next
to opts
Returns the options associated with this parser.
Returns the options associated with this parser.
the options associated with this parser
Parses the given argument sequence and returns a map of option names to option values.
Parses the given argument sequence and returns a map of option names to option values.
Example
val parser = ("timeout", 't') ~> asInt ~~ 0 val opts = parser parse Seq("--timeout", "10", "foo", "bar") // can fetch value using either long or short form val timeout = opts[Int]("timeout") val timeout = opts[Int]("t") // get arguments following last option: ("foo", "bar") val rest = opts.args
the argument sequence
the parse result containing the option value map
An option parser defined with a sequence of option definitions.