CliOption

declslides.cli.CliOption
See theCliOption companion enum
object CliOption

Helpers for working with CliOption values.

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
CliOption.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def parse(flag: String): Either[CliError, CliOption]

Parses a raw flag into a supported CLI option.

Parses a raw flag into a supported CLI option.

Value parameters

flag

raw flag as provided on the command line

Attributes

Returns

the matching option, or an error if the flag is unknown

Concrete fields

val all: List[CliOption]