Package nz.org.riskscape.picocli
Class CommandLine.Model
java.lang.Object
nz.org.riskscape.picocli.CommandLine.Model
- Enclosing class:
- CommandLine
This class provides a namespace for classes and interfaces that model concepts and attributes of command line interfaces in picocli.
- Since:
- 3.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TheArgGroupSpec
class models agroup
of arguments (options, positional parameters or a mixture of the two).static class
Models the shared attributes ofCommandLine.Model.OptionSpec
andCommandLine.Model.PositionalParamSpec
.static class
TheCommandSpec
class models a command specification, including the options, positional parameters and subcommands supported by the command, as well as attributes for the version help message and the usage help message of the command.static interface
Internal interface to allow annotation processors to construct a command model at compile time.static interface
Customizable getter for obtaining the current value of an option or positional parameter.static interface
static interface
The scope of a binding is the context where the current value should be gotten from or set to.static interface
Customizable setter for modifying the value of an option or positional parameter.static interface
Encapculates type information for an option or parameter to make this information available both at runtime and at compile time (whenClass
values are not available).static class
Utility class for getting resource bundle strings.static class
Command method parameter, similar to java.lang.reflect.Parameter (not available before Java 8).static class
TheOptionSpec
class models aspects of a named option of a command, including whether it is required or optional, the option parameters supported (or required) by the option, and attributes for the usage help message describing the option.static class
Models parser configuration specification.static class
ThePositionalParamSpec
class models aspects of a positional parameter of a command, including whether it is required or optional, and attributes for the usage help message describing the positional parameter.static class
This class allows applications to specify a custom binding that will be invoked for unmatched arguments.static class
Models the usage help message specification and can be used to customize the usage help message. -
Method Summary