Values

oxygen.cli.Values
See theValues companion object
sealed trait Values[+A] extends Parser[A]

Attributes

Companion
object
Experimental
true
Graph
Supertypes
trait Parser[A]
class Object
trait Matchable
class Any
Known subtypes
class Bracketed[A]
object Ignored
class Mapped[A, B]
class MappedOrFail[A, B]
class Optional[A]
class Or[A]
class Raw
class Repeated[A]
class RepeatedNel[A]
class SingleValue
class Then[A, B, O]
class WithDefault[A]
Show all

Members list

Value members

Abstract methods

override def buildInternal(usedParams: Set[SimpleName]): Either[BuildError, (Set[SimpleName], Values[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: ValueMessage

Attributes

Definition Classes
def parseValues(values: List[ValueLike]): ParseResult[A]

Concrete methods

final def <||[A2 >: A](that: Values[A2]): Values[A2]
final def <||>[B](that: Values[B]): Values[Either[A, B]]
final def ^>>[B](that: Values[B])(implicit zip: Zip[A, B]): Values[zip.Out]
override def map[B](f: A => B): Values[B]

Attributes

Definition Classes
override def mapOrFail[B](f: A => Either[String, B]): Values[B]

Attributes

Definition Classes
final def optional: Values[Option[A]]
final def optional(breakOnAnyError: Boolean): Values[Option[A]]
final override def parse(values: List[ValueLike], params: List[ParamLike]): ParseResult[A]

Attributes

Definition Classes
final def repeated: Values[List[A]]
final def repeated(breakOnAnyError: Boolean): Values[List[A]]
final def repeatedNel: Values[NonEmptyList[A]]
final def repeatedNel(breakOnAnyError: Boolean): Values[NonEmptyList[A]]
final def withDefault[A2 >: A](default: A2): Values[A2]
final def withDefault[A2 >: A](default: A2, breakOnAnyError: Boolean): Values[A2]
final def withOptionalDefault[A2 >: A](default: Option[A2]): Values[A2]
final def withOptionalDefault[A2 >: A](default: Option[A2], breakOnAnyError: Boolean): Values[A2]

Inherited methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Parser

Inherited and Abstract methods

def optionalName: Option[Name]

Attributes

Inherited from:
Parser