Opts

com.monovore.decline.Opts$
See theOpts companion trait
object Opts

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Opts.type

Members list

Concise view

Type members

Classlikes

case class LongName(flag: String) extends Name

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Name
class Object
trait Matchable
class Any
sealed trait Name

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class LongName
class ShortName
case class ShortName(flag: Char) extends Name

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Name
class Object
trait Matchable
class Any

Inherited 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 apply[A](value: => A): Opts[A]
def argument[A : Argument](metavar: String): Opts[A]
def arguments[A : Argument](metavar: String): Opts[NonEmptyList[A]]
def env[A : Argument](name: String, help: String, metavar: String): Opts[A]
def flag(long: String, help: String, short: String, visibility: Visibility): Opts[Unit]
def flagOption[A](long: String, help: String, short: String, metavar: String, visibility: Visibility)(implicit arg: Argument[A]): Opts[Option[A]]
def flagOptions[A](long: String, help: String, short: String, metavar: String, visibility: Visibility)(implicit arg: Argument[A]): Opts[NonEmptyList[Option[A]]]
def flags(long: String, help: String, short: String, visibility: Visibility): Opts[Int]
def option[A : Argument](long: String, help: String, short: String, metavar: String, visibility: Visibility): Opts[A]
def options[A : Argument](long: String, help: String, short: String, metavar: String, visibility: Visibility): Opts[NonEmptyList[A]]
def subcommand[A](command: Command[A]): Opts[A]
def subcommand[A](name: String, help: String, helpFlag: Boolean)(opts: Opts[A]): Opts[A]
def subcommands[A](head: Command[A], tail: Command[A]*): Opts[A]

Concrete fields

val help: Opts[Nothing]
val never: Opts[Nothing]
val unit: Opts[Unit]

Implicits

Implicits

implicit val alternative: Alternative[Opts]
implicit def monoid[A]: Monoid[Opts[A]]