Reader

@implicitNotFound("No argparse.Reader[${A}] found. A reader is required to parse a command line argument from a string to a ${A}. ".+("Please define a given argparse.Reader[$A].")) trait Reader[A]

A typeclass that defines how to convert a string from a single command line argument to a given type.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def read(a: String): Result[A]
Implicitly added by OptionReader

Either convert the string to A or return a failure message.

Either convert the string to A or return a failure message.

Note that throwing an exception from a reader will cause the parser to crash, leading to a horrible user experience.

def read(a: String): Result[A]

Either convert the string to A or return a failure message.

Either convert the string to A or return a failure message.

Note that throwing an exception from a reader will cause the parser to crash, leading to a horrible user experience.

def show(a: A): String
Implicitly added by OptionReader

Show a given value as a string. This is used in help dialogs to display default values.

Show a given value as a string. This is used in help dialogs to display default values.

def show(a: A): String

Show a given value as a string. This is used in help dialogs to display default values.

Show a given value as a string. This is used in help dialogs to display default values.

Concrete methods

Implicitly added by OptionReader

A completer for bash. This is used by standalone bash completion, where a bash script generates completion, without the involvement of the the user program.

A completer for bash. This is used by standalone bash completion, where a bash script generates completion, without the involvement of the the user program.

If your program is implemented with Scala on the JVM, the startup time is considerable and hence standalone completion should be preferred for a snappy user experience.

A completer for bash. This is used by standalone bash completion, where a bash script generates completion, without the involvement of the the user program.

A completer for bash. This is used by standalone bash completion, where a bash script generates completion, without the involvement of the the user program.

If your program is implemented with Scala on the JVM, the startup time is considerable and hence standalone completion should be preferred for a snappy user experience.

def completer: String => Seq[String]
Implicitly added by OptionReader

Compute available shell completions starting with a given string. This is used by embedded bash completion, where the user program is responsible for generating completions.

Compute available shell completions starting with a given string. This is used by embedded bash completion, where the user program is responsible for generating completions.

def completer: String => Seq[String]

Compute available shell completions starting with a given string. This is used by embedded bash completion, where the user program is responsible for generating completions.

Compute available shell completions starting with a given string. This is used by embedded bash completion, where the user program is responsible for generating completions.