caseapp.core.argparser
package 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]
object AccumulatorArgParser
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AccumulatorArgParser.type
Parses argument values of type T
.
Parses argument values of type T
.
Type parameters
- T:
-
parsed value type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AccumulatorArgParser[T]class FlagAccumulatorArgParser[T]class FlagArgParser[T]class LastArgParser[T]class SimpleArgParser[T]Show all
object ArgParser extends PlatformArgParsers
Attributes
final case class Consumed(value: Boolean) extends AnyVal
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
case class FlagAccumulatorArgParser[T](description: String, parse: (Option[T], Int, Int, Option[String]) => Either[Error, T]) extends ArgParser[T]
object FlagAccumulatorArgParser
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
case class FlagArgParser[T](description: String, parse: (Option[String], Int, Int) => Either[Error, T]) extends ArgParser[T]
object FlagArgParser
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FlagArgParser.type
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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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]
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ArgParser
case class SimpleArgParser[T](description: String, parse: (String, Int, Int) => Either[Error, T]) extends ArgParser[T]
object SimpleArgParser
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SimpleArgParser.type
In this article