Argument

com.monovore.decline.Argument
See theArgument companion object
trait Argument[A]

This typeclass captures the information needed to use this type as an option argument.

See the documentation for more details.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

def defaultMetavar: String

Returns a short, human-readable description of the accepted input format for this type, suitable to be used in a command-line usage message.

Returns a short, human-readable description of the accepted input format for this type, suitable to be used in a command-line usage message.

Attributes

def read(string: String): ValidatedNel[String, A]

Attempt to parse a single command-line argument: given an argument, this returns either the parsed value or a message explaining the failure.

Attempt to parse a single command-line argument: given an argument, this returns either the parsed value or a message explaining the failure.

Attributes

Concrete methods

def map[B](fn: A => B): Argument[B]
Implicitly added by ArgumentMethods
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any