And

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

Will attempt to parse left, and then right with the remaining args after parsing left. Both left and right must succeed in order for this parser to succeed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Params[O]
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], Params[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: ParamMessage

Attributes

Definition Classes
override def optionalName: Option[Name]

Attributes

Definition Classes
override def parseParams(params: List[ParamLike]): ParseResult[O]

Attributes

Definition Classes

Inherited methods

final def &&[B](that: Params[B])(implicit zip: Zip[O, B]): Params[zip.Out]

Attributes

See also
Inherited from:
Params
final def <||[A2 >: O](that: Params[A2]): Params[A2]

Attributes

See also
Inherited from:
Params
final def <||[A2 >: O](that: Parser[A2]): Parser[A2]

Attributes

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

Attributes

See also
Inherited from:
Params
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 apply(args: String*): FinalParseResult[O]

Attributes

Inherited from:
Parser
final def apply(args: List[String]): FinalParseResult[O]

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
override def map[B](f: O => B): Params[B]

Attributes

Definition Classes
Inherited from:
Params
override def mapOrFail[B](f: O => Either[String, B]): Params[B]

Attributes

Definition Classes
Inherited from:
Params
final def optional: Params[Option[O]]

Attributes

Inherited from:
Params
final override def parse(values: List[ValueLike], params: List[ParamLike]): ParseResult[O]

Attributes

Definition Classes
Inherited from:
Params
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def repeated: Params[List[O]]

Attributes

Inherited from:
Params
final def repeatedNel: Params[NonEmptyList[O]]

Attributes

Inherited from:
Params
final def withDefault[A2 >: O](default: A2): Params[A2]

Attributes

Inherited from:
Params
final def withOptionalDefault[A2 >: O](default: Option[A2]): Params[A2]

Attributes

Inherited from:
Params
final def ||[A2 >: O](that: Params[A2]): Params[A2]

Attributes

See also
Inherited from:
Params