A flag ("option") matches a single character which is either a letter or a digit
A flag ("option") matches a single character which is either a letter or a digit
a Parser[Flag]
A "synopsis" of command-line options and their potential argument values.
A "synopsis" of command-line options and their potential argument values. It matches a dash ('-') followed by a list of optionalOrRequiredElement OR: an optional list of flagWithOrWithoutValue
a Parser[Seq[Element]
A flagWithOrWithoutValue matches EITHER: a flag (option); OR: a flag (option) followed by a value
A flagWithOrWithoutValue matches EITHER: a flag (option); OR: a flag (option) followed by a value
a Parser[Element] which is EITHER: a Parser[Flag] OR: a Parser[FlagWithValue]
A operandToken matches at least one non-space, non-dash, non-bracket symbol
A operandToken matches at least one non-space, non-dash, non-bracket symbol
a Parser[String]
An optionalElement matches a '[' followed by a flagWithOrWithoutValue followed by a ']'
An optionalElement matches a '[' followed by a flagWithOrWithoutValue followed by a ']'
a Parser[OptionalElement]
An optionalElement matches a '[' followed by a flagWithOrWithoutValue followed by a ']'
An optionalElement matches a '[' followed by a flagWithOrWithoutValue followed by a ']'
a Parser[Seq[Element]
An optionalOrRequiredElement matches EITHER: an optionalElement OR: a flagWithOrWithoutValue
An optionalOrRequiredElement matches EITHER: an optionalElement OR: a flagWithOrWithoutValue
a Parser[Element] which is EITHER: a Parser[Flag] OR: a Parser[FlagWithValue] OR: a Parser[OptionalElement]
An optionalValue matches "[" "value" "]"
An optionalValue matches "[" "value" "]"
a Parser[OptionalElement]
(Changed in version 2.9.0) The p0
call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
A "synopsis" of command-line options and their potential argument values.
A "synopsis" of command-line options and their potential argument values. It matches a dash ('-') followed by a list of optionalOrRequiredElement OR: an optional list of flagWithOrWithoutValue
a Parser[Seq[Element]
A value matches EITHER: a space [which is ignored] followed by a valueToken1 OR: a valueToken2
A value matches EITHER: a space [which is ignored] followed by a valueToken1 OR: a valueToken2
a Parser[Value]
A valueToken1 matches at least one non-space, non-bracket symbol
A valueToken1 matches at least one non-space, non-bracket symbol
CONSIDER should not allow "-"
a Parser[String]
A valueToken2 matches an uppercase letter followed by any number of non-space, non-bracket symbols
A valueToken2 matches an uppercase letter followed by any number of non-space, non-bracket symbols
CONSIDER should not allow "-"
a Parser[String]