package core
Core types / classes of caseapp.
Not that in most use cases of caseapp, simply importing things right under caseapp, rather things from caseapp.core, should be enough.
This package is itself split in several sub-packages: - caseapp.core.argparser: things related to parsing a single argument value, - caseapp.core.parser: things related to parsing a sequence of arguments, - caseapp.core.commandparser: things related to parsing a sequence of arguments, handling commands, - caseapp.core.help: things related to help messages, - caseapp.core.app: helpers to create caseapp-based applications, - caseapp.core.default: helper to set / define a default value for a given type, - caseapp.core.util: utilities, mostly for internal use.
- Alphabetic
- By Inheritance
- core
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Arg(name: Name, extraNames: Seq[Name] = Nil, valueDescription: Option[ValueDescription] = None, helpMessage: Option[HelpMessage] = None, noHelp: Boolean = false, isFlag: Boolean = false) extends Product with Serializable
Infos about an argument / option an application can accept.
-
sealed abstract
class
Counter extends AnyRef
Helper to count how many times a flag argument is specified.
Helper to count how many times a flag argument is specified.
Should be used with Int and caseapp.@@, like
Int @@ Counter
. -
sealed abstract
class
Error extends Product with Serializable
Base type for errors during arguments parsing
-
final
case class
RemainingArgs(remaining: Seq[String], unparsed: Seq[String]) extends Product with Serializable
Arguments that don't correspond to options.
Value Members
- object Error extends Serializable