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 opts = ("timeout", 't') ~> as[Int] ~~ 0 val optr = opts <~ Seq("--timeout", "10", "foo", "bar") // fetch value using either long or short form val timeout = optr[Int]("timeout") val timeout = optr[Int]("t") // get arguments following last option: ("foo", "bar") val rest = optr.args
the argument sequence
the parse result containing the option value map
OptException
if an error occurred during parsing
Returns the options associated with this parser.
Returns the options associated with this parser.
the options associated with this parser
An option parser defined with a sequence of option definitions.