RepeatedNel

oxygen.cli.Params.RepeatedNel
final case class RepeatedNel[A](parser: Params[A]) extends Params[NonEmptyList[A]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Params[NonEmptyList[A]]
trait Parser[NonEmptyList[A]]
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[NonEmptyList[A]])]

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[NonEmptyList[A]]

Attributes

Definition Classes

Inherited methods

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

Attributes

Inherited from:
Params
final def <||[A2 >: NonEmptyList[A]](that: Params[A2]): Params[A2]

Attributes

Inherited from:
Params
final def <||[A2 >: NonEmptyList[A]](that: Parser[A2]): Parser[A2]

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Parser
override def map[B](f: NonEmptyList[A] => B): Params[B]

Attributes

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

Attributes

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

Attributes

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

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[NonEmptyList[A]]]

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Params