caseapp.core.argparser

Things related to parsing a single argument.

Mostly revolves around caseapp.core.argparser.ArgParser.

Attributes

Members list

Concise view

Type members

Classlikes

case class AccumulatorArgParser[T](description: String, parse: (Option[T], Int, Int, String) => Either[Error, T]) extends ArgParser[T]

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class ArgParser[T]

Parses argument values of type T.

Parses argument values of type T.

Attributes

T:

parsed value type

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Consumed(value: Boolean) extends AnyVal

Attributes

Graph
Supertypes
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
case class FlagAccumulatorArgParser[T](description: String, parse: (Option[T], Int, Int, Option[String]) => Either[Error, T]) extends ArgParser[T]

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FlagArgParser[T](description: String, parse: (Option[String], Int, Int) => Either[Error, T]) extends ArgParser[T]

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Last[T](value: T)

Allows an argument to be specified multiple times.

Allows an argument to be specified multiple times.

Discards previously specified values.

Attributes

T:

wrapped type

value:

actual value of type T

See also:
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
case class LastArgParser[T](parser: ArgParser[T]) extends ArgParser[Last[T]]

Attributes

Graph
Supertypes
trait Product
trait Equals
class ArgParser[Last[T]]
class Object
trait Matchable
class Any
final class MapErrorArgParser[T, U](argParser: ArgParser[T], from: U => T, to: T => Either[Error, U]) extends ArgParser[U]

Attributes

Graph
Supertypes
class ArgParser[U]
class Object
trait Matchable
class Any
abstract class PlatformArgParsers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ArgParser.type
case class SimpleArgParser[T](description: String, parse: (String, Int, Int) => Either[Error, T]) extends ArgParser[T]

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type