Interface | Description |
---|---|
CommandLine.Help.Ansi.IStyle |
Defines the interface for an ANSI escape sequence.
|
CommandLine.Help.IOptionRenderer |
When customizing online help for
Option details, a custom IOptionRenderer can be
used to create textual representation of an Option in a tabular format: one or more rows, each containing
one or more columns. |
CommandLine.Help.IParameterRenderer |
When customizing online help for
Parameters details, a custom IParameterRenderer
can be used to create textual representation of a Parameters field in a tabular format: one or more rows,
each containing one or more columns. |
CommandLine.Help.IParamLabelRenderer |
When customizing online usage help for an option parameter or a positional parameter, a custom
IParamLabelRenderer can be used to render the parameter name or label to a String. |
CommandLine.IExceptionHandler |
Represents a function that can handle a
ParameterException that occurred while
parsing the command line arguments. |
CommandLine.IParseResultHandler |
Represents a function that can process a List of
CommandLine objects resulting from successfully
parsing the command line arguments. |
CommandLine.ITypeConverter<K> |
When parsing command line arguments and initializing
fields annotated with
@Option or @Parameters ,
String values can be converted to any type for which a ITypeConverter is registered. |
Class | Description |
---|---|
CommandLine |
CommandLine interpreter that uses reflection to initialize an annotated domain object with values obtained from the
command line arguments.
|
CommandLine.Assert |
Utility class providing some defensive coding convenience methods.
|
CommandLine.BuiltIn |
Inner class to group the built-in
CommandLine.ITypeConverter implementations. |
CommandLine.BuiltIn.BigDecimalConverter | |
CommandLine.BuiltIn.BigIntegerConverter | |
CommandLine.BuiltIn.BooleanConverter |
Converts
"true" or "false" to a Boolean . |
CommandLine.BuiltIn.ByteConverter |
Converts text to a
Byte by delegating to Byte.valueOf(String) . |
CommandLine.BuiltIn.CharacterConverter | |
CommandLine.BuiltIn.CharSequenceConverter | |
CommandLine.BuiltIn.CharsetConverter | |
CommandLine.BuiltIn.DoubleConverter | |
CommandLine.BuiltIn.FileConverter | |
CommandLine.BuiltIn.FloatConverter | |
CommandLine.BuiltIn.InetAddressConverter |
Converts text to a
InetAddress by delegating to InetAddress.getByName(String) . |
CommandLine.BuiltIn.IntegerConverter |
Converts text to an
Integer by delegating to Integer.valueOf(String) . |
CommandLine.BuiltIn.ISO8601DateConverter |
Converts text in
yyyy-mm-dd format to a java.util.Date . |
CommandLine.BuiltIn.ISO8601TimeConverter |
Converts text in any of the following formats to a
java.sql.Time : HH:mm , HH:mm:ss ,
HH:mm:ss.SSS , HH:mm:ss,SSS . |
CommandLine.BuiltIn.LongConverter |
Converts text to a
Long by delegating to Long.valueOf(String) . |
CommandLine.BuiltIn.PathConverter | |
CommandLine.BuiltIn.PatternConverter | |
CommandLine.BuiltIn.ShortConverter |
Converts text to a
Short by delegating to Short.valueOf(String) . |
CommandLine.BuiltIn.StringBuilderConverter | |
CommandLine.BuiltIn.StringConverter | |
CommandLine.BuiltIn.URIConverter | |
CommandLine.BuiltIn.URLConverter | |
CommandLine.BuiltIn.UUIDConverter | |
CommandLine.DefaultExceptionHandler |
Default exception handler that prints the exception message to the specified
PrintStream , followed by the
usage message for the command or subcommand whose input was invalid. |
CommandLine.Help |
A collection of methods and inner classes that provide fine-grained control over the contents and layout of
the usage help message to display to end users when help is requested or invalid input values were specified.
|
CommandLine.Help.Ansi.Palette256Color |
Defines a palette map of 216 colors: 6 * 6 * 6 cube (216 colors):
16 + 36 * r + 6 * g + b (0 <= r, g, b <= 5).
|
CommandLine.Help.Ansi.StyledSection | |
CommandLine.Help.ColorScheme |
All usage help message are generated with a color scheme that assigns certain styles and colors to common
parts of a usage message: the command name, options, positional parameters and option parameters.
|
CommandLine.Help.Column | |
CommandLine.Help.DefaultOptionRenderer | |
CommandLine.Help.DefaultParameterRenderer |
The DefaultParameterRenderer converts
Parameters to five columns of text to match the
default TextTable column layout. |
CommandLine.Help.DefaultParamLabelRenderer | |
CommandLine.Help.Layout |
Use a Layout to format usage help text for options and parameters in tabular format.
|
CommandLine.Help.MinimalOptionRenderer |
The MinimalOptionRenderer converts
Options to a single row with two columns of text: an
option name and a description. |
CommandLine.Help.MinimalParameterRenderer |
The MinimalParameterRenderer converts
Parameters to a single row with two columns of
text: the parameters label and a description. |
CommandLine.Help.ShortestFirst |
Sorts short strings before longer strings.
|
CommandLine.Help.SortByOptionArityAndNameAlphabetically |
Sorts
Option instances by their max arity first, then their min arity, then delegates to super class. |
CommandLine.Help.SortByShortestOptionNameAlphabetically |
Sorts
Option instances by their name in case-insensitive alphabetic order. |
CommandLine.Help.TextTable |
Responsible for spacing out
CommandLine.Help.Ansi.Text values according to the CommandLine.Help.Column definitions the table was
created with. |
CommandLine.Help.TextTable.Cell |
Helper class to index positions in a
Help.TextTable . |
CommandLine.PositionalParametersSorter | |
CommandLine.Range |
Describes the number of parameters required and accepted by an option or a positional parameter.
|
CommandLine.RunAll |
Command line parse result handler that prints help if requested, and otherwise executes the top-level command and
all subcommands as
Runnable or Callable . |
CommandLine.RunFirst |
Command line parse result handler that prints help if requested, and otherwise executes the top-level
Runnable or Callable command. |
CommandLine.RunLast |
Command line parse result handler that prints help if requested, and otherwise executes the most specific
Runnable or Callable subcommand. |
CommandLine.Tracer |
Enum | Description |
---|---|
CommandLine.Help.Ansi |
Provides methods and inner classes to support using ANSI escape codes in usage help messages.
|
CommandLine.Help.Ansi.Style |
A set of pre-defined ANSI escape code styles and colors, and a set of convenience methods for parsing
text with embedded markup style names, as well as convenience methods for converting
styles to strings with embedded escape codes.
|
CommandLine.Help.Column.Overflow |
Policy for handling text that is longer than the column width:
span multiple columns, wrap to the next row, or simply truncate the portion that doesn't fit.
|
CommandLine.TraceLevel |
Exception | Description |
---|---|
CommandLine.DuplicateOptionAnnotationsException |
Exception indicating that multiple fields have been annotated with the same Option name.
|
CommandLine.ExecutionException |
Exception indicating a problem while invoking a command or subcommand.
|
CommandLine.InitializationException |
Exception indicating a problem during
CommandLine initialization. |
CommandLine.MaxValuesforFieldExceededException |
Exception indicating that more values were specified for an option or parameter than its
arity allows. |
CommandLine.MissingParameterException |
Exception indicating that a required parameter was not specified.
|
CommandLine.MissingTypeConverterException |
Exception indicating that an annotated field had a type for which no
CommandLine.ITypeConverter was
registered. |
CommandLine.OverwrittenOptionException |
Exception indicating that an option for a single-value option field has been specified multiple times on the command line.
|
CommandLine.ParameterException |
Exception indicating something went wrong while parsing command line options.
|
CommandLine.ParameterIndexGapException |
Exception indicating that there was a gap in the indices of the fields annotated with
CommandLine.Parameters . |
CommandLine.PicocliException |
Base class of all exceptions thrown by
picocli.CommandLine . |
CommandLine.TypeConversionException |
Exception thrown by
CommandLine.ITypeConverter implementations to indicate a String could not be converted. |
CommandLine.UnmatchedArgumentException |
Exception indicating that a command line argument could not be mapped to any of the fields annotated with
CommandLine.Option or CommandLine.Parameters . |
Annotation Type | Description |
---|---|
CommandLine.Command |
Annotate your class with
@Command when you want more control over the format of the generated help
message. |
CommandLine.Option |
Annotate fields in your class with
@Option and picocli will initialize these fields when matching
arguments are specified on the command line. |
CommandLine.Parameters |
Fields annotated with
@Parameters will be initialized with positional parameters. |