caseapp.core.argparser

Things related to parsing a single argument.

Mostly revolves around caseapp.core.argparser.ArgParser.

Attributes

Members list

Type members

Classlikes

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
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.

Type parameters

T:

parsed value type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FlagArgParser[T]
class LastArgParser[T]
class MapErrorArgParser[T, U]
class SimpleArgParser[T]
Show all
object ArgParser extends PlatformArgParsers

Attributes

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

Attributes

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
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
Supertypes
trait Serializable
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any
Show all
object FlagArgParser

Attributes

Companion
class
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.

Type parameters

T:

wrapped type

Value parameters

value:

actual value of type T

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class ArgParser[T]
class Object
trait Matchable
class Any
Show all

Attributes

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