Then

oxygen.cli.Parser.Then
final case class Then[A, B, O](left: Parser[A], right: Parser[B], zip: Out[A, B, O]) extends Parser[O]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Parser[O]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def buildInternal(usedParams: Set[SimpleName]): Either[BuildError, (Set[SimpleName], Parser[O])]

This should do 2 things:

This should do 2 things:

  1. Fail if there are duplicate param names
  2. Convert Defaultable.Auto into Defaultable.Some/Defaultable.None based on start of long name

Attributes

Definition Classes
override def helpMessage: HelpMessage

Attributes

Definition Classes
override def optionalName: Option[Name]

Attributes

Definition Classes
override def parse(values: List[ValueLike], params: List[ParamLike]): ParseResult[O]

Attributes

Definition Classes

Inherited methods

final def <||[A2 >: O](that: Parser[A2]): Parser[A2]

Attributes

Inherited from:
Parser
final def <||>[B](that: Parser[B]): Parser[Either[O, B]]

Attributes

Inherited from:
Parser
final def ^>>[B](that: Parser[B])(implicit zip: Zip[O, B]): Parser[zip.Out]

Attributes

Inherited from:
Parser
final def bracketed(name: LongName): Values[O]

Attributes

Inherited from:
Parser
final def build: Either[BuildError, Parser[Either[HelpType, O]]]

Attributes

Inherited from:
Parser
def map[B](f: O => B): Parser[B]

Attributes

Inherited from:
Parser
def mapOrFail[B](f: O => Either[String, B]): Parser[B]

Attributes

Inherited from:
Parser
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product