caseapp.core.argparser

Things related to parsing a single argument.

Mostly revolves around caseapp.core.argparser.ArgParser.

Type members

Classlikes

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

Parses argument values of type T.

Parses argument values of type T.

Type parameters:
T:

parsed value type

Companion:
object
Companion:
class
final case class Consumed(value: Boolean) extends AnyVal
case class FlagAccumulatorArgParser[T](description: String, parse: (Option[T], Int, Int, Option[String]) => Either[Error, T]) extends ArgParser[T]
Companion:
object
case class FlagArgParser[T](description: String, parse: (Option[String], Int, Int) => Either[Error, T]) extends ArgParser[T]
Companion:
object
Companion:
class
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

See also:
case class LastArgParser[T](parser: ArgParser[T]) extends ArgParser[Last[T]]
final class MapErrorArgParser[T, U](argParser: ArgParser[T], from: U => T, to: T => Either[Error, U]) extends ArgParser[U]
abstract class PlatformArgParsers
case class SimpleArgParser[T](description: String, parse: (String, Int, Int) => Either[Error, T]) extends ArgParser[T]
Companion:
object
Companion:
class