caseapp.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.
Attributes
Members list
Packages
Things related to parsing a single argument.
Things related to parsing a single argument.
Mostly revolves around caseapp.core.argparser.ArgParser.
Attributes
Command parsing-related things.
Command parsing-related things.
Attributes
All-the-arguments parsing stuff.
Type members
Classlikes
Infos about an argument / option an application can accept.
Infos about an argument / option an application can accept.
Value parameters
- extraNames:
-
extra names
- helpMessage:
-
help message for this argument (optional)
- isFlag:
-
if true, passing an actual value to this argument is optional
- name:
-
main name of the argument
- noHelp:
-
if true, this argument should not appear in help messages
- valueDescription:
-
description of its value (optional)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Base type for errors during arguments parsing
Base type for errors during arguments parsing
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class SeveralErrorsclass SimpleErrorclass ArgumentAlreadySpecifiedobject ArgumentMissingobject CannotBeDisabledclass CommandNotFoundclass MalformedValueclass Otherclass ParsingArgumentclass UnrecognizedArgumentclass UnrecognizedFlagValueShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Arguments that don't correspond to options.
Arguments that don't correspond to options.
Value parameters
- remaining:
-
arguments before any
--
- unparsed:
-
arguments after a first
--
, if any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Scala3Helpers.type