Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abbreviatedOptionsAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- abbreviatedOptionsAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- abbreviatedSubcommandsAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- abbreviatedSubcommandsAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- abbreviatedSynopsis() - Method in class picocli.CommandLine.Help
-
Generates a generic synopsis like
<command name> [OPTIONS] [PARAM1 [PARAM2]...], omitting parts that don't apply to the command (e.g., does not show [OPTIONS] if the command has no options). - abbreviateSynopsis() - Element in annotation type picocli.CommandLine.Command
-
Specify
trueto generate an abbreviated synopsis like"<main> [OPTIONS] [PARAMETERS...] [COMMAND]". - abbreviateSynopsis() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether the synopsis line(s) should show an abbreviated synopsis without detailed option names.
- abbreviateSynopsis(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether the synopsis line(s) should show an abbreviated synopsis without detailed option names.
- AbstractCommandSpecProcessor - Class in picocli.codegen.annotation.processing
-
Abstract annotation processor for
@picocli.*annotations that produces a set ofCommandLine.Model.CommandSpecobjects built from the annotated source code. - AbstractCommandSpecProcessor() - Constructor for class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
- AbstractHandler() - Constructor for class picocli.CommandLine.AbstractHandler
-
Deprecated.
- AbstractParseResultHandler() - Constructor for class picocli.CommandLine.AbstractParseResultHandler
-
Deprecated.
- add(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified option spec or positional parameter spec to the list of configured arguments to expect.
- add(CommandLine.Model.ArgSpec, int) - Method in class picocli.CommandLine.ParseResult.Builder
-
Adds the specified
OptionSpecorPositionalParamSpecto the list of options and parameters that were matched on the command line. - addAllOptions(List<CommandLine.Model.OptionSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Calls
CommandLine.Help.Layout.addOption(CommandLine.Model.OptionSpec, CommandLine.Help.IParamLabelRenderer)for all Options in the specified list. - addAllPositionalParameters(List<CommandLine.Model.PositionalParamSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Calls
CommandLine.Help.Layout.addPositionalParameter(CommandLine.Model.PositionalParamSpec, CommandLine.Help.IParamLabelRenderer)for all positional parameters in the specified list. - addAllSubcommands(Map<String, CommandLine>) - Method in class picocli.CommandLine.Help
-
Registers all specified subcommands with this Help.
- addArg(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Adds the specified argument to the list of options and positional parameters that depend on this group.
- addArgGroup(CommandLine.Model.ArgGroupSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified argument group to the groups in this command.
- addEmptyRow() - Method in class picocli.CommandLine.Help.TextTable
-
Adds the required
char[]slots for a new row to theCommandLine.Help.TextTable.columnValuesfield. - addError(CommandLine.PicocliException) - Method in class picocli.CommandLine.ParseResult.Builder
- addMethodSubcommands() - Element in annotation type picocli.CommandLine.Command
-
Specify whether methods annotated with
@Commandshould be registered as subcommands of their enclosing@Commandclass. - addMethodSubcommands() - Method in class picocli.CommandLine.Model.CommandSpec
-
Reflects on the class of the user object and registers any command methods (class methods annotated with
@Command) as subcommands. - addMethodSubcommands(CommandLine.IFactory) - Method in class picocli.CommandLine.Model.CommandSpec
-
Reflects on the class of the user object and registers any command methods (class methods annotated with
@Command) as subcommands. - addMixin(String, Object) - Method in class picocli.CommandLine
-
Adds the options and positional parameters in the specified mixin to this command.
- addMixin(String, CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified mixin
CommandSpecobject to the map of mixins for this command. - addMixin(String, CommandLine.Model.CommandSpec, CommandLine.Model.IAnnotatedElement) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified mixin
CommandSpecobject to the map of mixins for this command. - addOption(CommandLine.Model.OptionSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified option spec to the list of configured arguments to expect.
- addOption(CommandLine.Model.OptionSpec) - Method in class picocli.CommandLine.ParseResult.Builder
-
Adds the specified
OptionSpecto the list of options that were matched on the command line. - addOption(CommandLine.Model.OptionSpec, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Delegates to the
option rendererof this layout to obtain text values for the specifiedCommandLine.Model.OptionSpec, and then calls theCommandLine.Help.Layout.layout(CommandLine.Model.ArgSpec, CommandLine.Help.Ansi.Text[][])method to write these text values into the correct cells in the TextTable. - addOptions(List<CommandLine.Model.OptionSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Calls
CommandLine.Help.Layout.addOption(CommandLine.Model.OptionSpec, CommandLine.Help.IParamLabelRenderer)for all non-hidden Options in the list. - addParentCommandElement(CommandLine.Model.IAnnotatedElement) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified
{@literal @}ParentCommand-annotated program element to the list of elements for this command. - addPattern(String, String, String) - Method in class picocli.CommandLine.RegexTransformer.Builder
-
Adds the specified negative replacement and synopsis replacement for the specified regular expression.
- addPositional(CommandLine.Model.PositionalParamSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified positional parameter spec to the list of configured arguments to expect.
- addPositionalParam(CommandLine.Model.PositionalParamSpec, int) - Method in class picocli.CommandLine.ParseResult.Builder
-
Adds the specified
PositionalParamSpecto the list of parameters that were matched on the command line. - addPositionalParameter(CommandLine.Model.PositionalParamSpec, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Delegates to the
parameter rendererof this layout to obtain text values for the specified positional parameter, and then callsCommandLine.Help.Layout.layout(CommandLine.Model.ArgSpec, CommandLine.Help.Ansi.Text[][])to write these text values into the correct cells in the TextTable. - addPositionalParameters(List<CommandLine.Model.PositionalParamSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help.Layout
-
Calls
CommandLine.Help.Layout.addPositionalParameter(CommandLine.Model.PositionalParamSpec, CommandLine.Help.IParamLabelRenderer)for all non-hidden Parameters in the list. - addRowValues(String...) - Method in class picocli.CommandLine.Help.TextTable
-
Delegates to
CommandLine.Help.TextTable.addRowValues(CommandLine.Help.Ansi.Text...), after ensuring that multi-line values are layed out in the correct row and column. - addRowValues(CommandLine.Help.Ansi.Text...) - Method in class picocli.CommandLine.Help.TextTable
- addSpecElement(CommandLine.Model.IAnnotatedElement) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Adds the specified
{@literal @}Specannotated program element to the list of spec elements for this group. - addSpecElement(CommandLine.Model.IAnnotatedElement) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified
{@literal @}Spec-annotated program element to the list of elements for this command. - addSubcommand(Object) - Method in class picocli.CommandLine
-
Registers a subcommand with the name obtained from the
@Command(name = "...")annotation attribute of the specified command. - addSubcommand(String, Object) - Method in class picocli.CommandLine
-
Registers a subcommand with the specified name.
- addSubcommand(String, Object) - Method in class picocli.CommandLine.Help
-
Deprecated.
- addSubcommand(String, Object, String...) - Method in class picocli.CommandLine
-
Registers a subcommand with the specified name and all specified aliases.
- addSubcommand(String, CommandLine) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified subcommand with the specified name.
- addSubcommand(String, CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified subcommand with the specified name.
- addSubgroup(CommandLine.Model.ArgGroupSpec) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Adds the specified group to the list of subgroups that this group is composed of.
- addUnmatched(String) - Method in class picocli.CommandLine.ParseResult.Builder
-
Adds the specified command line argument to the list of unmatched command line arguments.
- addUnmatched(Stack<String>) - Method in class picocli.CommandLine.ParseResult.Builder
-
Adds all elements of the specified command line arguments stack to the list of unmatched command line arguments.
- addUnmatchedArgsBinding(CommandLine.Model.UnmatchedArgsBinding) - Method in class picocli.CommandLine.Model.CommandSpec
-
Adds the specified
UnmatchedArgsBindingto the list of model objects to capture unmatched arguments for this command. - adjustLineBreaksForWideCJKCharacters() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether line breaks should take wide Chinese, Japanese and Korean characters into account for line-breaking purposes.
- adjustLineBreaksForWideCJKCharacters(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether line breaks should take wide Chinese, Japanese and Korean characters into account, and returns this UsageMessageSpec.
- aliases() - Element in annotation type picocli.CommandLine.Command
-
Alternative command names by which this subcommand is recognized on the command line.
- aliases() - Method in class picocli.CommandLine.Help
-
Returns the list of aliases for the command in this Help.
- aliases() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the alias command names of this subcommand.
- aliases(String...) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the alternative names by which this subcommand is recognized on the command line.
- allOptionsNested() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns all options configured for this group and all subgroups.
- allowOptionsAsOptionParameters() - Method in class picocli.CommandLine.Model.ParserSpec
- allowOptionsAsOptionParameters(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- allowSubcommandsAsOptionParameters() - Method in class picocli.CommandLine.Model.ParserSpec
- allowSubcommandsAsOptionParameters(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- allPositionalParametersNested() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns all positional parameters configured for this group and all subgroups.
- allSubcommands() - Method in class picocli.CommandLine.Help
-
Returns the map of all subcommand
Helpinstances (including hidden commands) for this command Help. - ALWAYS - Enum constant in enum picocli.CommandLine.Help.Visibility
- andExit(int) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.use
CommandLine.execute(String...)instead, and callSystem.exit()in the application. - annotatedElement - Variable in class picocli.CommandLine.Model.ArgSpec
- AnnotatedElementHolder - Class in picocli.codegen.annotation.processing
-
Implementation of the
CommandLine.Model.IGetterandCommandLine.Model.ISetterinterface that allows customCommandSpecannotation processors to inspectArgSpecobjects to discover what program element was annotated with@Optionor@Parameters. - AnnotatedElementHolder(Element) - Constructor for class picocli.codegen.annotation.processing.AnnotatedElementHolder
-
Constructs a new
AnnotatedElementHolderwith the specified element - ansi() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.use
CommandLine.AbstractHandler.colorScheme()instead - ansi() - Method in class picocli.CommandLine.Help
-
Returns whether ANSI escape codes are enabled or not.
- ansi() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the
Ansisetting of this color scheme. - ansi() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the
Ansisetting of this color scheme builder. - ansi(CommandLine.Help.Ansi) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Set the
Ansisetting of this color scheme builder. - append(String) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Deprecated.use
CommandLine.Help.Ansi.Text.concat(String)instead - append(CommandLine.Help.Ansi.Text) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Deprecated.
- apply(String, List<CommandLine.Help.Ansi.IStyle>) - Method in enum picocli.CommandLine.Help.Ansi
-
Deprecated.use
CommandLine.Help.ColorScheme.apply(String, List)instead - apply(String, List<CommandLine.Help.Ansi.IStyle>) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a new Text object where all the specified styles are applied to the full length of the specified plain text.
- applySystemProperties() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Replaces colors and styles in this scheme builder with ones specified in system properties, and returns this builder.
- argGroups() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the argument groups in this command.
- args() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the options and positional parameters in this group; may be empty but not
null. - args() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the list of options and positional parameters that depend on this group.
- args() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of all options and positional parameters configured for this command.
- arity() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns how many arguments this option or positional parameter requires.
- arity() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns how many arguments this option or positional parameter requires.
- arity() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns how many arguments this option or positional parameter requires.
- arity() - Element in annotation type picocli.CommandLine.Option
-
Specifies the minimum number of required parameters and the maximum number of accepted parameters.
- arity() - Element in annotation type picocli.CommandLine.Parameters
-
Specifies the minimum number of required parameters and the maximum number of accepted parameters.
- arity(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets how many arguments this option or positional parameter requires, and returns this builder.
- arity(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets how many arguments this option or positional parameter requires, and returns this builder.
- arity(CommandLine.Range) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets how many arguments this option or positional parameter requires, and returns this builder.
- arity(CommandLine.Range) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets how many arguments this option or positional parameter requires, and returns this builder.
- aritySatisfiedByAttachedOptionParam() - Method in class picocli.CommandLine.Model.ParserSpec
-
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.
- aritySatisfiedByAttachedOptionParam(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
-
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.
- asCommandLineList() - Method in class picocli.CommandLine.ParseResult
-
Returns this
ParseResultas a list ofCommandLineobjects, one for each matched command/subcommand. - Assert - Class in picocli.codegen.util
-
Utility class providing some defensive coding convenience methods.
- AT_FILE_POSITIONAL_PARAM - Variable in class picocli.CommandLine.Help
- atFileCommentChar() - Method in class picocli.CommandLine.Model.ParserSpec
- atFileCommentChar(Character) - Method in class picocli.CommandLine.Model.ParserSpec
- atFileParameterList() - Method in class picocli.CommandLine.Help
-
Returns the section of the usage help message that lists the @-file and its description.
- AUTO - Enum constant in enum picocli.CommandLine.Help.Ansi
-
Only emit ANSI escape codes if the platform supports it and system property
"picocli.ansi"is not set to any value other than"true"(case insensitive). - AutoComplete - Class in picocli
-
Stand-alone tool that generates bash auto-complete scripts for picocli-based command line applications.
- AutoComplete.GenerateCompletion - Class in picocli
-
Command that generates a Bash/ZSH completion script for its top-level command.
- autoWidth() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether picocli should attempt to detect the terminal size and adjust the usage help message width to take the full terminal width.
- autoWidth(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether picocli should attempt to detect the terminal size and adjust the usage help message width to take the full terminal width.
- auxiliaryTypes() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns auxiliary type information used when the
CommandLine.Model.ArgSpec.type()is a generic type likeCollection,MaporOptional; returns the concrete type whenCommandLine.Model.ArgSpec.type()is an abstract class, otherwise, returns the same asCommandLine.Model.ArgSpec.type(). - auxiliaryTypes() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns auxiliary type information used when the
CommandLine.Model.ArgSpec.Builder.type()is a generic container likeCollection,Map,Optionalor an abstract class. - auxiliaryTypes() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns auxiliary type information used when the
CommandLine.Model.ArgSpec.Builder.type()is a generic container likeCollection,Map,Optionalor an abstract class. - auxiliaryTypes(Class<?>...) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets auxiliary type information, and returns this builder.
- auxiliaryTypes(Class<?>...) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets auxiliary type information, and returns this builder.
B
- BASE_PATH - Static variable in class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
-
Base path where generated files will be written to: "META-INF/native-image/picocli-generated/".
- bash(String, File, File, CommandLine) - Static method in class picocli.AutoComplete
-
Generates source code for an autocompletion bash script for the specified picocli-based application, and writes this script to the specified
outfile, and optionally writes an invocation script to the specifiedcommandfile. - bash(String, CommandLine) - Static method in class picocli.AutoComplete
-
Generates and returns the source code for an autocompletion bash script for the specified picocli-based application.
- bg(String) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Parses the specified style markup and returns the associated style.
- bg_black - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_blue - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_cyan - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_green - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_magenta - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_red - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_white - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bg_yellow - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- blink - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- bold - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- build() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Creates and returns a new
ColorSchemewith the values configured on this builder. - build() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns a valid
ArgGroupSpecinstance. - build() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns a valid
OptionSpecinstance. - build() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns a valid
PositionalParamSpecinstance. - build() - Method in class picocli.CommandLine.ParseResult.Builder
-
Creates and returns a new
ParseResultinstance for this builder's configuration. - build() - Method in class picocli.CommandLine.RegexTransformer.Builder
- builder() - Static method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns a new
CommandLine.Model.ArgGroupSpec.Builder. - builder() - Static method in class picocli.CommandLine.Model.PositionalParamSpec
- builder(String[]) - Static method in class picocli.CommandLine.Model.OptionSpec
- builder(String, String...) - Static method in class picocli.CommandLine.Model.OptionSpec
- builder(CommandLine.Model.CommandSpec) - Static method in class picocli.CommandLine.ParseResult
-
Creates and returns a new
ParseResult.Builderfor the specified command spec. - builder(CommandLine.Model.IAnnotatedElement) - Static method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns a new
CommandLine.Model.ArgGroupSpec.Builderassociated with the specified annotated element. - builder(CommandLine.Model.IAnnotatedElement, CommandLine.IFactory) - Static method in class picocli.CommandLine.Model.OptionSpec
- builder(CommandLine.Model.IAnnotatedElement, CommandLine.IFactory) - Static method in class picocli.CommandLine.Model.PositionalParamSpec
- builder(CommandLine.Model.OptionSpec) - Static method in class picocli.CommandLine.Model.OptionSpec
-
Returns a Builder initialized from the specified
OptionSpec. - builder(CommandLine.Model.PositionalParamSpec) - Static method in class picocli.CommandLine.Model.PositionalParamSpec
-
Returns a Builder initialized from the specified
PositionalSpec. - Builder() - Constructor for class picocli.CommandLine.Help.ColorScheme.Builder
-
Constructs an empty color scheme builder with Ansi.AUTO.
- Builder() - Constructor for class picocli.CommandLine.RegexTransformer.Builder
-
Constructs an empty builder.
- Builder(CommandLine.Help.Ansi) - Constructor for class picocli.CommandLine.Help.ColorScheme.Builder
-
Constructs an empty color scheme builder with the specified Ansi value.
- Builder(CommandLine.Help.ColorScheme) - Constructor for class picocli.CommandLine.Help.ColorScheme.Builder
-
Constructs a color scheme builder with all attributes copied from the specified color scheme.
- Builder(CommandLine.RegexTransformer) - Constructor for class picocli.CommandLine.RegexTransformer.Builder
-
Constructs a builder populated with the values from the specified RegexTransformer.
C
- calcLongOptionColumnWidth(List<CommandLine.Model.OptionSpec>, List<CommandLine.Model.PositionalParamSpec>, CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine.Help
-
Returns the width of the long options column in the usage help message.
- call() - Method in class picocli.codegen.docgen.manpage.ManPageGenerator
-
Invokes
ManPageGenerator.generateManPage(Config, CommandLine.Model.CommandSpec...)to generate man pages for all non-hidden commands in the hierarchy from the top-level command down. - call(C, PrintStream, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(C, PrintStream, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(C, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(C, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(Class<C>, CommandLine.IFactory, PrintStream, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(Class<C>, CommandLine.IFactory, PrintStream, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(Class<C>, CommandLine.IFactory, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - call(Class<C>, CommandLine.IFactory, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - caseInsensitiveEnumValuesAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- caseInsensitiveEnumValuesAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- Cell(int, int) - Constructor for class picocli.CommandLine.Help.TextTable.Cell
-
Constructs a new Cell with the specified coordinates in the table.
- cellAt(int, int) - Method in class picocli.CommandLine.Help.TextTable
-
Deprecated.use
CommandLine.Help.TextTable.textAt(int, int)instead - Class Diagram of the CommandLine.Help API - Search tag in class picocli.CommandLine.Help
- Section
- Class Diagram of the CommandLine.Help API - Search tag in package picocli
- Section
- Class Diagram of the Picocli Exceptions - Search tag in exception class picocli.CommandLine.PicocliException
- Section
- Class Diagram of the Picocli Exceptions - Search tag in package picocli
- Section
- Classes and Interfaces for Defining a CommandSpec Model - Search tag in class picocli.CommandLine
- Section
- Classes and Interfaces for Defining a CommandSpec Model - Search tag in package picocli
- Section
- Classes Related to Parsing Command Line Arguments - Search tag in class picocli.CommandLine
- Section
- Classes Related to Parsing Command Line Arguments - Search tag in package picocli
- Section
- clearExecutionResults() - Method in class picocli.CommandLine
-
Clears the execution result of a previous invocation from this
CommandLineand all subcommands. - clone() - Method in class picocli.CommandLine.Help.Ansi.Text
- closeSilently(Closeable) - Static method in class picocli.codegen.util.Util
- collectErrors() - Method in class picocli.CommandLine.Model.ParserSpec
-
Returns true if exceptions during parsing should be collected instead of thrown.
- collectErrors(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
-
Sets whether exceptions during parsing should be collected instead of thrown.
- colorScheme - Variable in class picocli.CommandLine.Help.Layout
- colorScheme() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns the ColorScheme to use.
- colorScheme() - Method in class picocli.CommandLine.Help
-
Returns the
ColorSchememodel that this Help was constructed with. - colorScheme() - Method in class picocli.CommandLine.Help.Layout
-
Returns the ColorScheme used to create Text objects in this layout.
- column - Variable in class picocli.CommandLine.Help.TextTable.Cell
-
Table column index (zero based).
- Column(int, int, CommandLine.Help.Column.Overflow) - Constructor for class picocli.CommandLine.Help.Column
- columns() - Method in class picocli.CommandLine.Help.TextTable
-
The column definitions of this table.
- columnValues - Variable in class picocli.CommandLine.Help.TextTable
-
The
char[]slots of theTextTableto copy text values into. - command() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the command this option or positional parameter belongs to.
- commandLine - Variable in exception class picocli.CommandLine.ParameterException
- commandLine() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the CommandLine constructed with this
CommandSpecmodel. - commandLine(CommandLine) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the CommandLine constructed with this
CommandSpecmodel. - CommandLine - Class in picocli
-
CommandLine interpreter that uses reflection to initialize an annotated user object with values obtained from the command line arguments.
- CommandLine(Object) - Constructor for class picocli.CommandLine
-
Constructs a new
CommandLineinterpreter with the specified object (which may be an annotated user object or aCommandSpec) and a default factory. - CommandLine(Object, CommandLine.IFactory) - Constructor for class picocli.CommandLine
-
Constructs a new
CommandLineinterpreter with the specified object (which may be an annotated user object or aCommandSpec) and object factory. - CommandLine.AbstractHandler<R,
T> - Class in picocli -
Deprecated.
- CommandLine.AbstractParseResultHandler<R> - Class in picocli
- CommandLine.ArgGroup - Annotation Type in picocli
-
A
Commandmay define one or moreArgGroups: a group of options, positional parameters or a mixture of the two. - CommandLine.Command - Annotation Type in picocli
-
Annotate your class with
@Commandwhen you want more control over the format of the generated help message. - CommandLine.DefaultExceptionHandler<R> - Class in picocli
- CommandLine.DuplicateNameException - Exception Class in picocli
-
Exception indicating that multiple named elements have incorrectly used the same name.
- CommandLine.DuplicateOptionAnnotationsException - Exception Class in picocli
-
Exception indicating that multiple fields have been annotated with the same Option name.
- CommandLine.ExecutionException - Exception Class in picocli
-
Exception indicating a problem while invoking a command or subcommand.
- CommandLine.ExitCode - Class in picocli
-
Defines some exit codes used by picocli as default return values from the
executeandexecuteHelpRequestmethods. - CommandLine.Help - Class in picocli
-
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 - Enum in picocli
-
Provides methods and inner classes to support using ANSI escape codes in usage help messages.
- CommandLine.Help.Ansi.IStyle - Interface in picocli
-
Defines the interface for an ANSI escape sequence.
- CommandLine.Help.Ansi.Style - Enum in picocli
-
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.Ansi.Text - Class in picocli
-
Encapsulates rich text with styles and colors.
- CommandLine.Help.ColorScheme - Class in picocli
-
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.ColorScheme.Builder - Class in picocli
-
Builder class to create
ColorSchemeinstances. - CommandLine.Help.Column - Class in picocli
- CommandLine.Help.Column.Overflow - Enum in picocli
-
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.Help.IOptionRenderer - Interface in picocli
-
When customizing online help for
Optiondetails, a customIOptionRenderercan 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 - Interface in picocli
-
When customizing online help for positional parameters details, a custom
IParameterRenderercan 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 - Interface in picocli
-
When customizing online usage help for an option parameter or a positional parameter, a custom
IParamLabelRenderercan be used to render the parameter name or label to a String. - CommandLine.Help.Layout - Class in picocli
-
Use a Layout to format usage help text for options and parameters in tabular format.
- CommandLine.Help.TextTable - Class in picocli
-
Responsible for spacing out
CommandLine.Help.Ansi.Textvalues according to theCommandLine.Help.Columndefinitions the table was created with. - CommandLine.Help.TextTable.Cell - Class in picocli
-
Helper class to index positions in a
Help.TextTable. - CommandLine.Help.Visibility - Enum in picocli
-
Controls the visibility of certain aspects of the usage help message.
- CommandLine.HelpCommand - Class in picocli
-
Help command that can be installed as a subcommand on all application commands.
- CommandLine.IDefaultValueProvider - Interface in picocli
-
Provides default value for a command.
- CommandLine.IExceptionHandler - Interface in picocli
- CommandLine.IExceptionHandler2<R> - Interface in picocli
- CommandLine.IExecutionExceptionHandler - Interface in picocli
-
Classes implementing this interface know how to handle Exceptions that occurred while executing the
Runnable,CallableorMethoduser object of the command. - CommandLine.IExecutionStrategy - Interface in picocli
-
Implementations are responsible for "executing" the user input and returning an exit code.
- CommandLine.IExitCodeExceptionMapper - Interface in picocli
-
Interface that provides the appropriate exit code that will be returned from the
executemethod for an exception that occurred during parsing or while invoking the command's Runnable, Callable, or Method. - CommandLine.IExitCodeGenerator - Interface in picocli
-
@Command-annotated classes can implement this interface to specify an exit code that will be returned from theexecutemethod when the command is successfully invoked. - CommandLine.IFactory - Interface in picocli
-
Factory for instantiating classes that are registered declaratively with annotation attributes, like
CommandLine.Command.subcommands(),CommandLine.Option.converter(),CommandLine.Parameters.converter()andCommandLine.Command.versionProvider(). - CommandLine.IHelpCommandInitializable - Interface in picocli
-
Deprecated.use
CommandLine.IHelpCommandInitializable2instead - CommandLine.IHelpCommandInitializable2 - Interface in picocli
-
Help commands that provide usage help for other commands can implement this interface to be initialized with the information they need.
- CommandLine.IHelpFactory - Interface in picocli
-
Creates the
CommandLine.Helpinstance used to render the usage help message. - CommandLine.IHelpSectionRenderer - Interface in picocli
-
Renders a section of the usage help message.
- CommandLine.IModelTransformer - Interface in picocli
-
Provides a way to modify how the command model is built.
- CommandLine.INegatableOptionTransformer - Interface in picocli
-
Determines the option name transformation of negatable boolean options.
- CommandLine.InitializationException - Exception Class in picocli
-
Exception indicating a problem during
CommandLineinitialization. - CommandLine.IParameterConsumer - Interface in picocli
-
Options or positional parameters can be assigned a
IParameterConsumerthat implements custom logic to process the parameters for this option or this position. - CommandLine.IParameterExceptionHandler - Interface in picocli
-
Classes implementing this interface know how to handle
ParameterExceptions(usually from invalid user input). - CommandLine.IParameterPreprocessor - Interface in picocli
-
Options, positional parameters and commands can be assigned a
IParameterPreprocessorthat implements custom logic to preprocess the parameters for this option, position or command. - CommandLine.IParseResultHandler - Interface in picocli
-
Deprecated.Use
CommandLine.IExecutionStrategyinstead. - CommandLine.IParseResultHandler2<R> - Interface in picocli
-
Deprecated.use
CommandLine.IExecutionStrategyinstead, seeCommandLine.execute(String...) - CommandLine.ITypeConverter<K> - Interface in picocli
-
When parsing command line arguments and initializing fields annotated with
@Optionor@Parameters, String values can be converted to any type for which aITypeConverteris registered. - CommandLine.IVersionProvider - Interface in picocli
-
Provides version information for a command.
- CommandLine.MaxValuesExceededException - Exception Class in picocli
-
Exception indicating that more values were specified for an option or parameter than its
arityallows. - CommandLine.MissingParameterException - Exception Class in picocli
-
Exception indicating that a required parameter was not specified.
- CommandLine.MissingTypeConverterException - Exception Class in picocli
-
Exception indicating that an annotated field had a type for which no
CommandLine.ITypeConverterwas registered. - CommandLine.Mixin - Annotation Type in picocli
-
Fields annotated with
@Mixinare "expanded" into the current command:@Optionand@Parametersin the mixin class are added to the options and positional parameters of this command. - CommandLine.Model - Class in picocli
-
This class provides a namespace for classes and interfaces that model concepts and attributes of command line interfaces in picocli.
- CommandLine.Model.ArgGroupSpec - Class in picocli
-
The
ArgGroupSpecclass models agroupof arguments (options, positional parameters or a mixture of the two). - CommandLine.Model.ArgGroupSpec.Builder - Class in picocli
-
Builder responsible for creating valid
ArgGroupSpecobjects. - CommandLine.Model.ArgSpec - Class in picocli
-
Models the shared attributes of
CommandLine.Model.OptionSpecandCommandLine.Model.PositionalParamSpec. - CommandLine.Model.CommandSpec - Class in picocli
-
The
CommandSpecclass 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. - CommandLine.Model.IAnnotatedElement - Interface in picocli
-
Internal interface to allow annotation processors to construct a command model at compile time.
- CommandLine.Model.IExtensible - Interface in picocli
-
Interface to allow extending the capabilities of other interface without Java 8 default methods.
- CommandLine.Model.IGetter - Interface in picocli
-
Customizable getter for obtaining the current value of an option or positional parameter.
- CommandLine.Model.IOrdered - Interface in picocli
- CommandLine.Model.IScope - Interface in picocli
-
The scope of a getter/setter binding is the context where the current value should be gotten from or set to.
- CommandLine.Model.IScoped - Interface in picocli
-
This interface provides access to an
CommandLine.Model.IScopeinstance. - CommandLine.Model.ISetter - Interface in picocli
-
Customizable setter for modifying the value of an option or positional parameter.
- CommandLine.Model.ITypeInfo - Interface in picocli
-
Encapculates type information for an option or parameter to make this information available both at runtime and at compile time (when
Classvalues are not available). - CommandLine.Model.Messages - Class in picocli
-
Utility class for getting resource bundle strings.
- CommandLine.Model.MethodParam - Class in picocli
-
Command method parameter, similar to java.lang.reflect.Parameter (not available before Java 8).
- CommandLine.Model.OptionSpec - Class in picocli
-
The
OptionSpecclass 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. - CommandLine.Model.OptionSpec.Builder - Class in picocli
-
Builder responsible for creating valid
OptionSpecobjects. - CommandLine.Model.ParserSpec - Class in picocli
-
Models parser configuration specification.
- CommandLine.Model.PositionalParamSpec - Class in picocli
-
The
PositionalParamSpecclass 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. - CommandLine.Model.PositionalParamSpec.Builder - Class in picocli
-
Builder responsible for creating valid
PositionalParamSpecobjects. - CommandLine.Model.UnmatchedArgsBinding - Class in picocli
-
This class allows applications to specify a custom binding that will be invoked for unmatched arguments.
- CommandLine.Model.UsageMessageSpec - Class in picocli
-
Models the usage help message specification and can be used to customize the usage help message.
- CommandLine.MutuallyExclusiveArgsException - Exception Class in picocli
-
Exception indicating that the user input included multiple arguments from a mutually exclusive group.
- CommandLine.Option - Annotation Type in picocli
-
Annotate fields in your class with
@Optionand picocli will initialize these fields when matching arguments are specified on the command line. - CommandLine.OverwrittenOptionException - Exception Class in picocli
-
Exception indicating that an option for a single-value option field has been specified multiple times on the command line.
- CommandLine.ParameterException - Exception Class in picocli
-
Exception indicating something went wrong while parsing command line options.
- CommandLine.ParameterIndexGapException - Exception Class in picocli
-
Exception indicating that there was a gap in the indices of the fields annotated with
CommandLine.Parameters. - CommandLine.Parameters - Annotation Type in picocli
-
Fields annotated with
@Parameterswill be initialized with positional parameters. - CommandLine.ParentCommand - Annotation Type in picocli
-
Fields annotated with
@ParentCommandwill be initialized with the parent command of the current subcommand. - CommandLine.ParseResult - Class in picocli
-
Encapsulates the result of parsing an array of command line arguments.
- CommandLine.ParseResult.Builder - Class in picocli
-
Builds immutable
ParseResultinstances. - CommandLine.ParseResult.GroupMatch - Class in picocli
-
A group's multiplicity specifies how many matches of a group may appear on the command line.
- CommandLine.ParseResult.GroupMatchContainer - Class in picocli
-
Provides information about an
CommandLine.ArgGroupthat was matched on the command line. - CommandLine.PicocliException - Exception Class in picocli
-
Base class of all exceptions thrown by
picocli.CommandLine. - CommandLine.PropertiesDefaultProvider - Class in picocli
-
IDefaultValueProviderimplementation that loads default values for command line options and positional parameters from a properties file orPropertiesobject. - CommandLine.Range - Class in picocli
-
Describes the number of parameters required and accepted by an option or a positional parameter.
- CommandLine.RegexTransformer - Class in picocli
-
A regular expression-based option name transformation for negatable options.
- CommandLine.RegexTransformer.Builder - Class in picocli
-
Builder for creating
RegexTransformerobjects. - CommandLine.RunAll - Class in picocli
-
Command line execution strategy that prints help if requested, and otherwise executes the top-level command and all subcommands as
Runnable,CallableorMethod. - CommandLine.RunFirst - Class in picocli
-
Command line execution strategy that prints help if requested, and otherwise executes the top-level
RunnableorCallablecommand. - CommandLine.RunLast - Class in picocli
-
Command line execution strategy that prints help if requested, and otherwise executes the most specific
RunnableorCallablesubcommand. - CommandLine.ScopeType - Enum in picocli
-
Specifies the scope of the element.
- CommandLine.Spec - Annotation Type in picocli
-
Fields annotated with
@Specwill be initialized with theCommandSpecfor the command the field is part of. - CommandLine.Spec.Target - Enum in picocli
-
Identifies what kind of
CommandSpecshould be injected. - CommandLine.TraceLevel - Enum in picocli
-
Enumerates over the trace level values for filtering which internal debug statements should be printed.
- CommandLine.Tracer - Class in picocli
-
Utility class for printing internal debug statements.
- CommandLine.TypeConversionException - Exception Class in picocli
-
Exception thrown by
CommandLine.ITypeConverterimplementations to indicate a String could not be converted. - CommandLine.Unmatched - Annotation Type in picocli
-
Fields annotated with
@Unmatchedwill be initialized with the list of unmatched command line arguments, if any. - CommandLine.UnmatchedArgumentException - Exception Class in picocli
-
Exception indicating that a command line argument could not be mapped to any of the fields annotated with
CommandLine.OptionorCommandLine.Parameters. - CommandLine.UseDefaultConverter - Class in picocli
-
Converter that can be used to signal to picocli that it should use the default converter.
- commandList() - Method in class picocli.CommandLine.Help
-
Returns a 2-column list with the command names and first line of their header or (if absent) description of the commands returned by
CommandLine.Help.subcommands(). - commandList(Map<String, CommandLine.Help>) - Method in class picocli.CommandLine.Help
-
Returns a 2-column list with the command names and first line of their header or (if absent) description of the specified command map.
- commandListHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the subcommands list.
- commandListHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the subcommand list.
- commandListHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the command list; an empty string if there are no commands, otherwise the result of
String.format(commandListHeading, params). - commandListHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional heading preceding the subcommand list.
- commandNamesText(String) - Method in class picocli.CommandLine.Help
-
Returns a
Textobject containing the command name and all aliases, separated with the specified separator. - commands(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for commands in this color scheme builder and returns this builder.
- commandSpec() - Method in class picocli.CommandLine.Help
-
Returns the
CommandSpecmodel that this Help was constructed with. - commandSpec() - Method in class picocli.CommandLine.Model.Messages
-
Returns the CommandSpec of this object, never
null. - commandSpec() - Method in class picocli.CommandLine.ParseResult
-
Returns the
CommandSpecfor the matched command. - commandStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for commands in this color scheme builder.
- commandStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for commands in this color scheme.
- commandText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all command styles applied to the specified command string.
- compareTo(CommandLine.Range) - Method in class picocli.CommandLine.Range
- complete(String, int, List<CharSequence>) - Method in class picocli.shell.jline2.PicocliJLineCompleter
-
Populates the specified list with completion candidates for the specified buffer based on the command specification that this shell was constructed with.
- complete(CommandLine.Model.CommandSpec, String[], int, int, int, List<CharSequence>) - Static method in class picocli.AutoComplete
- completionCandidates() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the completion candidates for this option or positional parameter, or
null. - completionCandidates() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the completion candidates for this option or positional parameter, or
null. - completionCandidates() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the explicitly set completion candidates for this option or positional parameter, valid enum constant names, or
nullif this option or positional parameter does not have any completion candidates and its type is not an enum. - completionCandidates() - Element in annotation type picocli.CommandLine.Option
-
Use this attribute to specify an
Iterable<String>class that generates completion candidates for this option. - completionCandidates() - Element in annotation type picocli.CommandLine.Parameters
-
Use this attribute to specify an
Iterable<String>class that generates completion candidates for this positional parameter. - completionCandidates(Iterable<String>) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the completion candidates for this option or positional parameter, and returns this builder.
- completionCandidates(Iterable<String>) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the completion candidates for this option or positional parameter, and returns this builder.
- concat(String) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns a copy of this
Textinstance with the specified text concatenated to the end. - concat(CommandLine.Help.Ansi.Text) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns a copy of this
Textinstance with the specified text concatenated to the end. - consumeParameters(Stack<String>, CommandLine.Model.ArgSpec, CommandLine.Model.CommandSpec) - Method in interface picocli.CommandLine.IParameterConsumer
-
Consumes as many of the specified command line arguments as needed by popping them off the specified Stack.
- container() - Method in class picocli.CommandLine.ParseResult.GroupMatch
-
Returns the container
GroupMatchContainerof this match. - contains(int) - Method in class picocli.CommandLine.Range
-
Returns
trueif this Range includes the specified value,falseotherwise. - convert(String) - Method in interface picocli.CommandLine.ITypeConverter
-
Converts the specified command line argument value to some domain object.
- convert(String) - Method in class picocli.CommandLine.UseDefaultConverter
-
Always throws UnsupportedOperationException.
- converter() - Element in annotation type picocli.CommandLine.Option
-
Optionally specify one or more
CommandLine.ITypeConverterclasses to use to convert the command line argument into a strongly typed value (or key-value pair for map fields). - converter() - Element in annotation type picocli.CommandLine.Parameters
-
Optionally specify one or more
CommandLine.ITypeConverterclasses to use to convert the command line argument into a strongly typed value (or key-value pair for map fields). - converters() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns one or more
type convertersto use to convert the command line argument into a strongly typed value (or key-value pair for map fields). - converters() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns one or more
type convertersto use to convert the command line argument into a strongly typed value (or key-value pair for map fields). - converters() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns one or more
type convertersto use to convert the command line argument into a strongly typed value (or key-value pair for map fields). - converters(CommandLine.ITypeConverter<?>...) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets option/positional param-specific converter (or converters for Maps), and returns this builder.
- converters(CommandLine.ITypeConverter<?>...) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets option/positional param-specific converter (or converters for Maps), and returns this builder.
- copy(CommandLine.Model.CommandSpec, CommandLine.Model.Messages) - Static method in class picocli.CommandLine.Model.Messages
-
Returns a copy of the specified Messages object with the CommandSpec replaced by the specified one.
- create() - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecwithout any associated user object. - create(Class<K>) - Method in interface picocli.CommandLine.IFactory
-
Returns an instance of the specified class.
- create(CommandLine.Model.CommandSpec, CommandLine.Help.ColorScheme) - Method in interface picocli.CommandLine.IHelpFactory
-
Returns a
Helpinstance to assist in rendering the usage help message - createCaseInsensitive() - Static method in class picocli.CommandLine.RegexTransformer
-
Returns the
RegexTransformerfor case-insensitive negatable options. - createDefault() - Static method in class picocli.CommandLine.RegexTransformer
-
Returns the
RegexTransformerused by default for negatable options. - createDefaultLayout() - Method in class picocli.CommandLine.Help
-
Returns a
Layoutinstance configured with the user preferences captured in this Help instance. - createDefaultLayout(List<CommandLine.Model.OptionSpec>, List<CommandLine.Model.PositionalParamSpec>, CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine.Help
-
Returns a
Layoutinstance configured with the user preferences captured in this Help instance. - createDefaultOptionRenderer() - Method in class picocli.CommandLine.Help
- createDefaultOptionSort() - Method in class picocli.CommandLine.Help
-
Returns a comparator for sorting options, or
null, depending on the settings for this command. - createDefaultParameterRenderer() - Method in class picocli.CommandLine.Help
-
Returns a new default ParameterRenderer which converts positional parameters to four columns of text to match the default TextTable column layout.
- createDefaultParamLabelRenderer() - Method in class picocli.CommandLine.Help
-
Returns a new default param label renderer that separates option parameters from their option name with the specified separator string, and, unless
CommandLine.Model.ArgSpec.hideParamSyntax()is true, surrounds optional parameters with'['and']'characters and uses ellipses ("...") to indicate that any number of a parameter are allowed. - createDetailedSynopsisCommandText() - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the subcommands, starting with a
" "space. - createDetailedSynopsisEndOfOptionsText() - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the end of options delimiter (if enabled), starting with a
" "space. - createDetailedSynopsisGroupsText(Set<CommandLine.Model.ArgSpec>) - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the options and positional parameters in the specified validating groups, starting with a
" "space. - createDetailedSynopsisOptionsText(Collection<CommandLine.Model.ArgSpec>, Comparator<CommandLine.Model.OptionSpec>, boolean) - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the options, starting with a
" "space. - createDetailedSynopsisOptionsText(Collection<CommandLine.Model.ArgSpec>, List<CommandLine.Model.OptionSpec>, Comparator<CommandLine.Model.OptionSpec>, boolean) - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the specified options, starting with a
" "space. - createDetailedSynopsisPositionalsText(Collection<CommandLine.Model.ArgSpec>) - Method in class picocli.CommandLine.Help
-
Returns a Text object containing a partial detailed synopsis showing only the positional parameters, starting with a
" "space. - createHeading(String, Object...) - Method in class picocli.CommandLine.Help
-
Returns a String that can be used as a help section heading.
- createLabelRenderer(CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.Model.ArgGroupSpec
- createMinimalOptionRenderer() - Static method in class picocli.CommandLine.Help
-
Returns a new minimal OptionRenderer which converts
Optionsto a single row with two columns of text: an option name and a description. - createMinimalParameterRenderer() - Static method in class picocli.CommandLine.Help
-
Returns a new minimal ParameterRenderer which converts positional parameters to a single row with two columns of text: an option name and a description.
- createMinimalParamLabelRenderer() - Static method in class picocli.CommandLine.Help
-
Returns a value renderer that returns the
paramLabelif defined or the field name otherwise. - createShortOptionArityAndNameComparator() - Static method in class picocli.CommandLine.Help
- createShortOptionNameComparator() - Static method in class picocli.CommandLine.Help
-
Sorts
OptionSpecsby their option name in case-insensitive alphabetic order. - createTextTable(Map<?, ?>) - Method in class picocli.CommandLine.Help
-
Returns a 2-column
TextTablecontaining data from the specified map: the keys are put in the left column and the map values are in the right column. - CSI - Static variable in interface picocli.CommandLine.Help.Ansi.IStyle
-
The Control Sequence Introducer (CSI) escape sequence "\u001b[".
- customMarkupMap() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the custom mapping from markup names (the names of the
CommandLine.Help.Ansi.Styleenum constants, like bold, italic, fg_blue, bg_green, etc) toCommandLine.Help.Ansi.IStyleobjects in this color scheme. - customMarkupMap() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the custom mapping from markup names (the names of the
CommandLine.Help.Ansi.Styleenum constants, like bold, italic, fg_blue, bg_green, etc) toCommandLine.Help.Ansi.IStyleobjects in this color scheme. - customMarkupMap(Map<String, CommandLine.Help.Ansi.IStyle>) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Sets the custom mapping from markup names (the names of the
CommandLine.Help.Ansi.Styleenum constants, like bold, italic, fg_blue, bg_green, etc) toCommandLine.Help.Ansi.IStyleobjects in this color scheme. - customSynopsis() - Element in annotation type picocli.CommandLine.Command
-
Specify one or more custom synopsis lines to display instead of an auto-generated synopsis.
- customSynopsis() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional custom synopsis lines to use instead of the auto-generated synopsis.
- customSynopsis(Object...) - Method in class picocli.CommandLine.Help
-
Returns command custom synopsis as a string.
- customSynopsis(String...) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional custom synopsis lines to use instead of the auto-generated synopsis.
D
- debug(String, Object...) - Method in class picocli.CommandLine.Tracer
-
Prints the specified message if the current trace level is DEBUG or higher.
- DEBUG - Enum constant in enum picocli.CommandLine.TraceLevel
- DEFAULT_COMMAND_NAME - Static variable in class picocli.CommandLine.Help
-
Constant String holding the default program name, value defined in
CommandLine.Model.CommandSpec.DEFAULT_COMMAND_NAME. - DEFAULT_COMMAND_NAME - Static variable in class picocli.CommandLine.Model.CommandSpec
-
Constant String holding the default program name:
"<main class>". - DEFAULT_FALLBACK_VALUE - Static variable in class picocli.CommandLine.Model.OptionSpec
- DEFAULT_SEPARATOR - Static variable in class picocli.CommandLine.Help
-
Constant String holding the default string that separates options from option parameters, value defined in
CommandLine.Model.ParserSpec.DEFAULT_SEPARATOR. - DEFAULT_USAGE_WIDTH - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
-
Constant holding the default usage message width:
80. - defaultArity(Class<?>) - Static method in class picocli.CommandLine.Range
-
Deprecated.use
CommandLine.Range.defaultArity(Field)instead - defaultArity(Field) - Static method in class picocli.CommandLine.Range
-
Returns the default arity
Range: for interactive options/positional parameters, this is 0; foroptionsthis is effectively "0..1" for booleans and 1 for other types, forparametersbooleans have arity 1, arrays or Collections have arity "0..*", and other types have arity 1. - defaultColorScheme(CommandLine.Help.Ansi) - Static method in class picocli.CommandLine.Help
-
Creates and returns a new
CommandLine.Help.ColorSchemeinitialized with picocli default values: commands are bold, options and parameters use a yellow foreground, and option parameters use italic. - defaultExceptionHandler() - Static method in class picocli.CommandLine
-
Convenience method that returns
new DefaultExceptionHandler<List<Object>>(). - DefaultExceptionHandler() - Constructor for class picocli.CommandLine.DefaultExceptionHandler
-
Deprecated.
- defaultFactory() - Static method in class picocli.CommandLine
-
Returns the default
CommandLine.IFactoryimplementation used if no factory was specified in theCommandLine constructor. - defaultValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the default value of this option or positional parameter, before splitting and type conversion.
- defaultValue() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the default value of this option or positional parameter, before splitting and type conversion.
- defaultValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the default value to assign if this option or positional parameter was not specified on the command line, before splitting and type conversion.
- defaultValue() - Element in annotation type picocli.CommandLine.Option
-
Returns the default value of this option, before splitting and type conversion.
- defaultValue() - Element in annotation type picocli.CommandLine.Parameters
-
Returns the default value of this positional parameter, before splitting and type conversion.
- defaultValue(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the default value of this option or positional parameter to the specified value, and returns this builder.
- defaultValue(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the default value of this option or positional parameter to the specified value, and returns this builder.
- defaultValue(CommandLine.Model.ArgSpec) - Method in interface picocli.CommandLine.IDefaultValueProvider
-
Returns the default value for an option or positional parameter or
null. - defaultValue(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.PropertiesDefaultProvider
- defaultValueProvider() - Element in annotation type picocli.CommandLine.Command
-
Class that can provide default values dynamically at runtime.
- defaultValueProvider() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the default value provider for this command.
- defaultValueProvider(CommandLine.IDefaultValueProvider) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets default value provider for this command.
- defaultValueString() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the default value String for the purpose of displaying it in the description, without interpolating variables.
- defaultValueString(boolean) - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the default value String displayed in the description; interpolating variables if specified.
- description() - Element in annotation type picocli.CommandLine.Command
-
Optional text to display between the synopsis line(s) and the list of options.
- description() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the description of this option, used when generating the usage documentation.
- description() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the description of this option, used when generating the usage documentation.
- description() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the description of this option or positional parameter, after all variables have been rendered, including the
${DEFAULT-VALUE}and${COMPLETION-CANDIDATES}variables. - description() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional text lines to use as the description of the help message, displayed between the synopsis and the options list.
- description() - Element in annotation type picocli.CommandLine.Option
-
Description of this option, used when generating the usage documentation.
- description() - Element in annotation type picocli.CommandLine.Parameters
-
Description of the parameter(s), used when generating the usage documentation.
- description(Object...) - Method in class picocli.CommandLine.Help
-
Returns command description text as a string.
- description(String...) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the description of this option, used when generating the usage documentation, and returns this builder.
- description(String...) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the description of this option, used when generating the usage documentation, and returns this builder.
- description(String...) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional text lines to use as the description of the help message, displayed between the synopsis and the options list.
- descriptionHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the description section.
- descriptionHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the description section.
- descriptionHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the description text; an empty string if there is no description, otherwise the result of
String.format(descriptionHeading, params). - descriptionHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the heading preceding the description section.
- descriptionKey() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the description key of this arg spec, used to get the description from a resource bundle.
- descriptionKey() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the description key of this arg spec, used to get the description from a resource bundle.
- descriptionKey() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the description key of this arg spec, used to get the description from a resource bundle.
- descriptionKey() - Element in annotation type picocli.CommandLine.Option
-
ResourceBundle key for this option.
- descriptionKey() - Element in annotation type picocli.CommandLine.Parameters
-
ResourceBundle key for this option.
- descriptionKey(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the description key that is used to look up the description in a resource bundle, and returns this builder.
- descriptionKey(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the description key that is used to look up the description in a resource bundle, and returns this builder.
- detailedSynopsis(int, Comparator<CommandLine.Model.OptionSpec>, boolean) - Method in class picocli.CommandLine.Help
-
Generates a detailed synopsis message showing all options and parameters.
- detailedSynopsis(Comparator<CommandLine.Model.OptionSpec>, boolean) - Method in class picocli.CommandLine.Help
-
Deprecated.
- DuplicateNameException(String) - Constructor for exception class picocli.CommandLine.DuplicateNameException
- DuplicateOptionAnnotationsException(String) - Constructor for exception class picocli.CommandLine.DuplicateOptionAnnotationsException
- DynamicProxyConfigGenerator - Class in picocli.codegen.aot.graalvm
-
DynamicProxyConfigGeneratorgenerates a JSON String with the fully qualified interface names for which dynamic proxy classes should be generated at native image build time. - DynamicProxyConfigGenerator() - Constructor for class picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator
E
- echo() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether the user input is echoed to the console or not for an interactive option or positional parameter when asking for user input.
- echo() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether the user input is echoed to the console or not for an interactive option or positional parameter when asking for user input.
- echo() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether the user input is echoed to the console or not for an interactive option or positional parameter when asking for user input.
- echo() - Element in annotation type picocli.CommandLine.Option
-
Use this attribute to control whether user input for an interactive option is echoed to the console or not.
- echo() - Element in annotation type picocli.CommandLine.Parameters
-
Use this attribute to control whether user input for an interactive positional parameter is echoed to the console or not.
- echo(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether the user input is echoed to the console or not for an interactive option or positional parameter.
- echo(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether the user input is echoed to the console or not for an interactive option or positional parameter.
- empty(CommandLine.Model.Messages) - Static method in class picocli.CommandLine.Model.Messages
-
Returns
trueif the specifiedMessagesisnull, has anull ResourceBundle, or has anull parent Messages. - enabled() - Method in enum picocli.CommandLine.Help.Ansi
-
Returns
trueif ANSI escape codes should be emitted,falseotherwise. - END_OF_OPTIONS_OPTION - Variable in class picocli.CommandLine.Help
- endOfOptionsDelimiter() - Method in class picocli.CommandLine.Model.ParserSpec
- endOfOptionsDelimiter(String) - Method in class picocli.CommandLine.Model.ParserSpec
- endOfOptionsList() - Method in class picocli.CommandLine.Help
-
Returns the section of the usage help message that lists the
--End of Options delimiter and its description. - equals(Object) - Method in class picocli.CommandLine.Help.Ansi.Text
- equals(Object) - Method in class picocli.CommandLine.Help.ColorScheme
- equals(Object) - Method in class picocli.CommandLine.Help.Column
- equals(Object) - Method in class picocli.CommandLine.Model.ArgGroupSpec
- equals(Object) - Method in class picocli.CommandLine.Model.OptionSpec
- equals(Object) - Method in class picocli.CommandLine.Model.PositionalParamSpec
- equals(Object) - Method in class picocli.CommandLine.Range
- equals(Object, Object) - Static method in class picocli.codegen.util.Assert
- equalsImpl(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.ArgSpec
- err() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns the stream to print diagnostic messages to.
- error(Element, String, Object...) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Prints a compile-time error message for the specified element.
- errors() - Method in class picocli.CommandLine.ParseResult
-
If
CommandLine.Model.ParserSpec.collectErrorsistrue, returns the list of exceptions that were encountered during parsing, otherwise, returns an empty list. - errors(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for errors in this color scheme builder and returns this builder.
- errorStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for errors in this color scheme builder.
- errorStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for errors in this color scheme.
- errorText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all error styles applied to the specified error string.
- Example - Search tag in class picocli.CommandLine
- Section
- exclusive() - Element in annotation type picocli.CommandLine.ArgGroup
-
Determines whether this is a mutually exclusive group;
trueby default. - exclusive() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns whether this is a mutually exclusive group;
trueby default. - exclusive() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns whether this is a mutually exclusive group;
trueby default. - exclusive(boolean) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets whether this is a mutually exclusive group;
trueby default. - execute(String...) - Method in class picocli.CommandLine
-
Convenience method to allow command line application authors to avoid some boilerplate code in their application.
- execute(CommandLine.ParseResult) - Method in class picocli.CommandLine.AbstractParseResultHandler
-
Deprecated.
- execute(CommandLine.ParseResult) - Method in interface picocli.CommandLine.IExecutionStrategy
-
"Executes" the user input and returns an exit code.
- execute(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunAll
-
"Executes" the user input and returns an exit code.
- execute(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunFirst
-
"Executes" the user input and returns an exit code.
- execute(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunLast
-
"Executes" the user input and returns an exit code.
- executeHelpRequest(CommandLine.ParseResult) - Static method in class picocli.CommandLine
-
Helper method that may be useful when processing the
ParseResultthat results from successfully parsing command line arguments. - ExecutionException(CommandLine, String) - Constructor for exception class picocli.CommandLine.ExecutionException
- ExecutionException(CommandLine, String, Throwable) - Constructor for exception class picocli.CommandLine.ExecutionException
- exit(int) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Calls
System.exit(int)with the specified exit code. - EXIT_CODE_COMMAND_SCRIPT_EXISTS - Static variable in class picocli.AutoComplete
-
Exit code of this application when the specified command script exists (2).
- EXIT_CODE_COMPLETION_SCRIPT_EXISTS - Static variable in class picocli.AutoComplete
-
Exit code of this application when the specified completion script exists (3).
- EXIT_CODE_EXECUTION_ERROR - Static variable in class picocli.AutoComplete
-
Exit code of this application when an exception was encountered during operation (4).
- EXIT_CODE_INVALID_INPUT - Static variable in class picocli.AutoComplete
-
Exit code of this application when the specified command line arguments are invalid (1).
- EXIT_CODE_SUCCESS - Static variable in class picocli.AutoComplete
-
Normal exit code of this application (0).
- exitCode() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns the exit code to use as the termination status, or
null(the default) if the handler should not callSystem.exit(int)after processing completes. - exitCodeList() - Element in annotation type picocli.CommandLine.Command
-
Set the values to be displayed in the exit codes section as a list of
"key:value"pairs: keys are exit codes, values are descriptions. - exitCodeList() - Method in class picocli.CommandLine.Help
-
Returns a 2-column list with exit codes and their description.
- exitCodeList() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns an unmodifiable map with values to be displayed in the exit codes section: keys are exit codes, values are descriptions.
- exitCodeList(Map<String, String>) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the values to be displayed in the exit codes section: keys are exit codes, values are descriptions.
- exitCodeListHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the exit codes section, may contain
"%n"line separators. - exitCodeListHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the exit codes section, may contain
"%n"line separators. - exitCodeListHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the exit code list text; the result of
String.format(exitCodeHeading, params). - exitCodeListHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional heading preceding the exit codes section, may contain
"%n"line separators. - exitCodeOnExecutionException() - Element in annotation type picocli.CommandLine.Command
-
Exit code signifying that an exception occurred when invoking the Runnable, Callable or Method user object of a command.
- exitCodeOnExecutionException() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns exit code signifying that an exception occurred when invoking the Runnable, Callable or Method user object of a command.
- exitCodeOnExecutionException(int) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets exit code signifying that an exception occurred when invoking the Runnable, Callable or Method user object of a command.
- exitCodeOnInvalidInput() - Element in annotation type picocli.CommandLine.Command
-
Exit code for command line usage error.
- exitCodeOnInvalidInput() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns exit code for command line usage error.
- exitCodeOnInvalidInput(int) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets exit code for command line usage error.
- exitCodeOnSuccess() - Element in annotation type picocli.CommandLine.Command
-
Exit code for successful termination.
- exitCodeOnSuccess() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns exit code for successful termination.
- exitCodeOnSuccess(int) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets exit code for successful termination.
- exitCodeOnUsageHelp() - Element in annotation type picocli.CommandLine.Command
-
Exit code for successful termination after printing usage help on user request.
- exitCodeOnUsageHelp() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns exit code for successful termination after printing usage help on user request.
- exitCodeOnUsageHelp(int) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets exit code for successful termination after printing usage help on user request.
- exitCodeOnVersionHelp() - Element in annotation type picocli.CommandLine.Command
-
Exit code for successful termination after printing version help on user request.
- exitCodeOnVersionHelp() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns exit code for successful termination after printing version help on user request.
- exitCodeOnVersionHelp(int) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets exit code for successful termination after printing version help on user request.
- expandAtFiles() - Method in class picocli.CommandLine.Model.ParserSpec
- expandAtFiles(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- expandedArgs() - Method in class picocli.CommandLine.ParseResult
-
Returns the command line arguments after @-files were expanded; these are the arguments that were actually parsed.
- expandedArgs(Collection<String>) - Method in class picocli.CommandLine.ParseResult.Builder
-
Sets the specified command line arguments after @-files were expanded; these are the arguments that were actually parsed.
- extractExitCodeGenerators(CommandLine.ParseResult) - Method in class picocli.CommandLine.AbstractParseResultHandler
-
Deprecated.
- extractExitCodeGenerators(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunAll
- extractExitCodeGenerators(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunFirst
- extractExitCodeGenerators(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunLast
F
- faint - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fallbackValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the fallback value for this option: the value that is assigned for options with an optional parameter if the option was specified on the command line without parameter.
- fallbackValue() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns the fallback value for this option: the value that is assigned for options with an optional parameter (for example,
arity = "0..1") if the option was specified on the command line without parameter. - fallbackValue() - Element in annotation type picocli.CommandLine.Option
-
For options with an optional parameter (for example,
arity = "0..1"), this value is assigned to the annotated element if the option is specified on the command line without an option parameter. - fallbackValue(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the fallback value for this option: the value that is assigned for options with an optional parameter if the option was specified on the command line without parameter, and returns this builder.
- fatalError(String) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Prints a compile-time error message prefixed with "FATAL ERROR".
- fg(String) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Parses the specified style markup and returns the associated style.
- fg_black - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_blue - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_cyan - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_green - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_magenta - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_red - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_white - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- fg_yellow - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- findMatches(CommandLine.Model.ArgGroupSpec) - Method in class picocli.CommandLine.ParseResult
-
Returns the matches for the specified argument group.
- findOption(char) - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the option with the specified short name, or
nullif no option with that name is defined for this command. - findOption(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the option with the specified name, or
nullif no option with that name is defined for this command. - footer() - Element in annotation type picocli.CommandLine.Command
-
Optional text to display after the list of options.
- footer() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional footer text lines displayed at the bottom of the help message.
- footer(Object...) - Method in class picocli.CommandLine.Help
-
Returns command footer text as a string.
- footer(String...) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional footer text lines displayed at the bottom of the help message.
- footerHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the footer section.
- footerHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the footer section.
- footerHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the footer text; the result of
String.format(footerHeading, params). - footerHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional heading preceding the footer section.
- forAnnotatedObject(Object) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecinitialized from the specified associated user object. - forAnnotatedObject(Object, CommandLine.IFactory) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecinitialized from the specified associated user object. - forAnnotatedObjectLenient(Object) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecinitialized from the specified associated user object. - forAnnotatedObjectLenient(Object, CommandLine.IFactory) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecinitialized from the specified associated user object. - forColumns(CommandLine.Help.Ansi, CommandLine.Help.Column...) - Static method in class picocli.CommandLine.Help.TextTable
-
Deprecated.
- forColumns(CommandLine.Help.ColorScheme, CommandLine.Help.Column...) - Static method in class picocli.CommandLine.Help.TextTable
-
Constructs a
TextTablewith the specified columns. - forColumnWidths(CommandLine.Help.Ansi, int...) - Static method in class picocli.CommandLine.Help.TextTable
-
Deprecated.
- forColumnWidths(CommandLine.Help.ColorScheme, int...) - Static method in class picocli.CommandLine.Help.TextTable
-
Constructs a new TextTable with columns with the specified width, all SPANning multiple columns on overflow except the last column which WRAPS to the next row.
- forDefaultColumns(CommandLine.Help.Ansi, int) - Static method in class picocli.CommandLine.Help.TextTable
-
Deprecated.
- forDefaultColumns(CommandLine.Help.Ansi, int, int) - Static method in class picocli.CommandLine.Help.TextTable
-
Deprecated.
- forDefaultColumns(CommandLine.Help.ColorScheme, int, int) - Static method in class picocli.CommandLine.Help.TextTable
-
Constructs a TextTable with five columns as follows: required option/parameter marker (width: 2, indent: 0, TRUNCATE on overflow) short option name (width: 2, indent: 0, TRUNCATE on overflow) comma separator (width: 1, indent: 0, TRUNCATE on overflow) long option name(s) (width: 24, indent: 1, SPAN multiple columns on overflow) description line(s) (width: 51, indent: 1, WRAP to next row on overflow)
- format(LogRecord) - Method in class picocli.codegen.util.JulLogFormatter
- Format - Search tag in class picocli.CommandLine.PropertiesDefaultProvider
- Section
- forStringArrayConsumer(CommandLine.Model.ISetter) - Static method in class picocli.CommandLine.Model.UnmatchedArgsBinding
-
Creates a
UnmatchedArgsBindingfor a setter that consumesString[]objects. - forStringCollectionSupplier(CommandLine.Model.IGetter) - Static method in class picocli.CommandLine.Model.UnmatchedArgsBinding
-
Creates a
UnmatchedArgsBindingfor a getter that produces aCollection<String>that the unmatched arguments can be added to. - fullSynopsis() - Method in class picocli.CommandLine.Help
-
Returns the full usage synopsis of this command.
G
- GenerateCompletion() - Constructor for class picocli.AutoComplete.GenerateCompletion
- generateManPage(File, File, boolean[], boolean, CommandLine.Model.CommandSpec...) - Static method in class picocli.codegen.docgen.manpage.ManPageGenerator
-
Generates AsciiDoc files for the specified classes to the specified output directory, optionally also generating template files in the
customizablePagesDirectorydirectory. - generateProxyConfig(CommandLine.Model.CommandSpec[], String[]) - Static method in class picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator
-
Returns a JSON String with the interface names to generate dynamic proxy classes for in the native image, used by the specified
CommandSpecobjects. - generateReflectionConfig(CommandLine.Model.CommandSpec...) - Static method in class picocli.codegen.aot.graalvm.ReflectionConfigGenerator
-
Returns a JSON String with the program elements that will be accessed reflectively for the specified
CommandSpecobjects. - generateResourceConfig(CommandLine.Model.CommandSpec[], String[], String[]) - Static method in class picocli.codegen.aot.graalvm.ResourceConfigGenerator
-
Returns a JSON String with the resources and resource bundles to include for the specified
CommandSpecobjects. - generators - Variable in class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
- get() - Method in class picocli.codegen.annotation.processing.AnnotatedElementHolder
-
This implementation does nothing and always returns
null. - get() - Method in interface picocli.CommandLine.Model.IGetter
-
Returns the current value of the binding.
- getActualGenericTypeArguments() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns the names of the type arguments if this is a generic type.
- getAdditionalDescriptionKeys() - Method in class picocli.CommandLine.Model.ArgSpec
-
Subclasses should override to return a collection of additional description keys that may be used to find description text for this option or positional parameter in the resource bundle.
- getAdditionalDescriptionKeys() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns the additional lookup keys for finding description lines in the resource bundle for this option.
- getAdditionalDescriptionKeys() - Method in class picocli.CommandLine.Model.PositionalParamSpec
-
Returns the additional lookup keys for finding description lines in the resource bundle for this positional parameter.
- getAnnotation(Class<T>) - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getAnnotation(Class<T>) - Method in class picocli.CommandLine.Model.MethodParam
- getArgSpec() - Method in exception class picocli.CommandLine.ParameterException
-
Returns the
ArgSpecobject for the (sub)command whose input could not be parsed. - getAtFileCommentChar() - Method in class picocli.CommandLine
-
Returns the character that starts a single-line comment or
nullif all content of argument files should be interpreted as arguments (without comments). - getAuxiliaryTypeInfos() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns type information of components or elements of a
multivaluetype. - getAuxiliaryTypes() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns the component class of an array, or the parameter type of a generic Collection, or the parameter types of the key and the value of a generic Map.
- getCJKAdjustedLength() - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns the number of columns this Text will occupy on the console, adjusted for wide CJK characters.
- getCJKAdjustedLength(int, int) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns the number of columns that the specified portion of this Text will occupy on the console, adjusted for wide CJK characters.
- getClassName() - Method in interface picocli.CommandLine.Model.ITypeInfo
- getClassSimpleName() - Method in interface picocli.CommandLine.Model.ITypeInfo
- getColorScheme() - Method in class picocli.CommandLine
-
Returns the color scheme to use when printing help.
- getCommand() - Method in class picocli.CommandLine
-
Returns the annotated user object that this
CommandLineinstance was constructed with. - getCommandLine() - Method in exception class picocli.CommandLine.ExecutionException
-
Returns the
CommandLineobject for the (sub)command that could not be invoked. - getCommandLine() - Method in exception class picocli.CommandLine.ParameterException
-
Returns the
CommandLineobject for the (sub)command whose input could not be parsed. - getCommandMethods(Class<?>, String) - Static method in class picocli.CommandLine
-
Helper to get methods of a class annotated with
@Commandvia reflection, optionally filtered by method name (not@Command.name). - getCommandName() - Method in class picocli.CommandLine
-
Returns the command name (also called program name) displayed in the usage help synopsis.
- getCommandSpec() - Method in class picocli.CommandLine
-
Returns the
CommandSpecmodel that thisCommandLinewas constructed with. - getCommandSpecs(String, Class<?>[]) - Static method in class picocli.codegen.util.Util
- getDeclaredAnnotations() - Method in class picocli.CommandLine.Model.MethodParam
- getDeclaringExecutable() - Method in class picocli.CommandLine.Model.MethodParam
- getDefaultValueProvider() - Method in class picocli.CommandLine
-
Returns the default value provider for the command, or
nullif none has been set. - getElement() - Method in class picocli.codegen.annotation.processing.AnnotatedElementHolder
-
Returns the program element annotated with
@Optionor@Parameters. - getEndOfOptionsDelimiter() - Method in class picocli.CommandLine
-
Returns the end-of-options delimiter that signals that the remaining command line arguments should be treated as positional parameters.
- getEnumConstantNames() - Method in interface picocli.CommandLine.Model.ITypeInfo
- getErr() - Method in class picocli.CommandLine
-
Returns the writer to use when printing diagnostic (error) messages during command execution.
- getExecutionExceptionHandler() - Method in class picocli.CommandLine
-
Returns the handler for dealing with exceptions that occurred in the
Callable,RunnableorMethoduser object of a command when the command was executed. - getExecutionResult() - Method in class picocli.CommandLine
-
Returns the result of calling the user object
Callableor invoking the user objectMethodafter parsing the user input, ornullif this command has not been executed or if thisCommandLineis for a subcommand that was not specified by the end user on the command line. - getExecutionStrategy() - Method in class picocli.CommandLine
-
Returns the execution strategy used by the
executemethod to invoke the business logic on the user objects of this command and/or the user-specified subcommand(s). - getExitCode() - Method in interface picocli.CommandLine.IExitCodeGenerator
-
Returns the exit code that should be returned from the
executemethod. - getExitCode(Throwable) - Method in interface picocli.CommandLine.IExitCodeExceptionMapper
-
Returns the exit code that should be returned from the
executemethod. - getExitCodeExceptionMapper() - Method in class picocli.CommandLine
-
Returns the mapper that was set by the application to map from exceptions to exit codes, for use by the
executemethod. - getExtension(Class<T>) - Method in interface picocli.CommandLine.Model.IExtensible
-
Returns an instance of the specified class, or
nullif this extension is not supported. - getFactory() - Method in class picocli.CommandLine
-
Returns the factory that this
CommandLinewas constructed with. - getGroupMatches() - Method in class picocli.CommandLine.ParseResult
-
Returns the top-level container for the
ArgGroupSpecmatch or matches found. - getHelp() - Method in class picocli.CommandLine
-
Returns a new
Helpobject created by theIHelpFactorywith theCommandSpecandColorSchemeof this command. - getHelpFactory() - Method in class picocli.CommandLine
-
Returns the
IHelpFactorythat is used to construct the usage help message. - getHelpSectionKeys() - Method in class picocli.CommandLine
-
Returns the section keys in the order that the usage help message should render the sections.
- getHelpSectionMap() - Method in class picocli.CommandLine
-
Returns the map of section keys and renderers used to construct the usage help message.
- getLevel() - Method in class picocli.CommandLine.Tracer
-
Returns the trace level that needs to be matched or exceeded for internal tracing statements to be printed.
- getMethodParamPosition() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getMissing() - Method in exception class picocli.CommandLine.MissingParameterException
- getMixinName() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getMixins() - Method in class picocli.CommandLine
-
Returns a map of user objects whose options and positional parameters were added to ("mixed in" with) this command.
- getName() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getName() - Method in class picocli.CommandLine.Model.MethodParam
- getNegatableOptionTransformer() - Method in class picocli.CommandLine
-
Returns the
INegatableOptionTransformerused to create the negative form of negatable options. - getOut() - Method in class picocli.CommandLine
-
Returns the writer used when printing user-requested usage help or version help during command execution.
- getOverwritten() - Method in exception class picocli.CommandLine.OverwrittenOptionException
-
Returns the
CommandLine.Model.ArgSpecfor the option which was being overwritten. - getParameterExceptionHandler() - Method in class picocli.CommandLine
-
Returns the handler for dealing with invalid user input when the command is executed.
- getParameterizedType() - Method in class picocli.CommandLine.Model.MethodParam
- getParent() - Method in class picocli.CommandLine
-
Returns the command that this is a subcommand of, or
nullif this is a top-level command. - getParseResult() - Method in class picocli.CommandLine
- getResourceBundle() - Method in class picocli.CommandLine
-
Returns the ResourceBundle of this command or
nullif no resource bundle is set. - getScope() - Method in interface picocli.CommandLine.Model.IScoped
-
Get the
CommandLine.Model.IScopeinstance. - getSeparator() - Method in class picocli.CommandLine
-
Returns the String that separates option names from option values when parsing command line options.
- getString(String, String) - Method in class picocli.CommandLine.Model.Messages
-
Returns the String value found in the resource bundle for the specified key, or the specified default value if not found.
- getStringArray(String, String[]) - Method in class picocli.CommandLine.Model.Messages
-
Returns the String array value found in the resource bundle for the specified key, or the specified default value if not found.
- getStyledChars(int, int, CommandLine.Help.Ansi.Text, int) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Copies the specified substring of this Text into the specified destination, preserving the markup.
- getSubcommands() - Method in class picocli.CommandLine
-
Returns a map with the subcommands registered on this instance.
- getSuggestions() - Method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns suggested solutions if such solutions exist, otherwise returns an empty list.
- getSupportedAnnotationTypes() - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Returns the annotation types supported by the super class, and adds
"picocli.*"if necessary. - getSupportedSourceVersion() - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Returns the max supported source version.
- getter() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the
CommandLine.Model.IGetterthat is responsible for supplying the value of the annotated program element associated with this group. - getter() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the
CommandLine.Model.IGetterthat is responsible for supplying the value of the annotated program element associated with this group. - getter() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the
CommandLine.Model.IGetterthat is responsible for supplying the value of this argument. - getter() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the
CommandLine.Model.IGetterthat is responsible for supplying the value of this argument. - getter() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the
CommandLine.Model.IGetterthat is responsible for supplying the value of this argument. - getter() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getter() - Method in class picocli.CommandLine.Model.UnmatchedArgsBinding
-
Returns the getter responsible for producing a
Collectionthat the unmatched arguments can be added to. - getter(CommandLine.Model.IGetter) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the
CommandLine.Model.IGetterthat is responsible for getting the value of the annotated program element associated with this group, and returns this builder. - getter(CommandLine.Model.IGetter) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the
CommandLine.Model.IGetterthat is responsible for getting the value of this argument, and returns this builder. - getter(CommandLine.Model.IGetter) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the
CommandLine.Model.IGetterthat is responsible for getting the value of this argument, and returns this builder. - getToString() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getType() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns the class that the option or parameter value should be converted to when matched on the command line.
- getType() - Method in class picocli.CommandLine.Model.MethodParam
- getTypeElement() - Method in interface picocli.codegen.annotation.processing.ITypeMetaData
-
Returns the
TypeElementof thetype mirror. - getTypeInfo() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- getTypeMirror() - Method in interface picocli.codegen.annotation.processing.ITypeMetaData
-
Returns the TypeMirror of the value.
- getUnmatched() - Method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns the unmatched command line arguments.
- getUnmatchedArguments() - Method in class picocli.CommandLine
-
Returns the list of unmatched command line arguments, if any.
- getUsageHelpLongOptionsMaxWidth() - Method in class picocli.CommandLine
-
Returns the maximum usage help long options column max width to the specified value.
- getUsageHelpWidth() - Method in class picocli.CommandLine
-
Returns the maximum width of the usage help message.
- getUsageMessage() - Method in class picocli.CommandLine
-
Similar to
CommandLine.usage(PrintStream), but returns the usage help message as a String instead of printing it to thePrintStream. - getUsageMessage(CommandLine.Help.Ansi) - Method in class picocli.CommandLine
-
Similar to
CommandLine.usage(PrintStream, Help.Ansi), but returns the usage help message as a String instead of printing it to thePrintStream. - getUsageMessage(CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine
-
Similar to
CommandLine.usage(PrintStream, Help.ColorScheme), but returns the usage help message as a String instead of printing it to thePrintStream. - getValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the current value of this argument.
- getValue() - Method in exception class picocli.CommandLine.ParameterException
-
Returns the
Stringvalue for the (sub)command whose input could not be parsed. - getVersion() - Method in interface picocli.CommandLine.IVersionProvider
-
Returns version information for a command.
- group() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the groups this option or positional parameter belongs to, or
nullif this option is not part of a group. - group() - Method in class picocli.CommandLine.ParseResult.GroupMatch
-
Returns the
ArgGroupSpecof the containerGroupMatchContainerof this match. - group() - Method in class picocli.CommandLine.ParseResult.GroupMatchContainer
-
Returns the
ArgGroupSpecwhose matches are captured in thisGroupMatchContainer.
H
- handle(CommandLine.ParseResult) - Method in class picocli.CommandLine.AbstractParseResultHandler
-
Deprecated.Processes the specified
ParseResultand returns the result as a list of objects. - handle(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunAll
-
Executes the top-level command and all subcommands as
RunnableorCallable. - handle(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunFirst
-
Executes the top-level
RunnableorCallablesubcommand. - handle(CommandLine.ParseResult) - Method in class picocli.CommandLine.RunLast
-
Executes the most specific
RunnableorCallablesubcommand. - handleCommands(Map<Element, CommandLine.Model.CommandSpec>, Set<? extends TypeElement>, RoundEnvironment) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Subclasses must implement this method and do something with the
CommandSpeccommand model objects that were found during compilation. - handleCommands(Map<Element, CommandLine.Model.CommandSpec>, Set<? extends TypeElement>, RoundEnvironment) - Method in class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
- handleException(CommandLine.ParameterException, PrintStream, CommandLine.Help.Ansi, String...) - Method in class picocli.CommandLine.DefaultExceptionHandler
-
Deprecated.
- handleException(CommandLine.ParameterException, PrintStream, CommandLine.Help.Ansi, String...) - Method in interface picocli.CommandLine.IExceptionHandler
-
Deprecated.Handles a
ParameterExceptionthat occurred while parsing the command line arguments and optionally returns a list of results. - handleExecutionException(Exception, CommandLine, CommandLine.ParseResult) - Method in interface picocli.CommandLine.IExecutionExceptionHandler
-
Handles an
Exceptionthat occurred while executing theRunnableorCallablecommand and returns an exit code suitable for returning fromCommandLine.execute(String...). - handleExecutionException(CommandLine.ExecutionException, CommandLine.ParseResult) - Method in class picocli.CommandLine.DefaultExceptionHandler
-
Deprecated.This implementation always simply rethrows the specified exception.
- handleExecutionException(CommandLine.ExecutionException, CommandLine.ParseResult) - Method in interface picocli.CommandLine.IExceptionHandler2
-
Deprecated.Handles a
ExecutionExceptionthat occurred while executing theRunnableorCallablecommand and optionally returns a list of results. - handleParseException(CommandLine.ParameterException, String[]) - Method in class picocli.CommandLine.DefaultExceptionHandler
-
Deprecated.Prints the message of the specified exception, followed by the usage message for the command or subcommand whose input was invalid, to the stream returned by
CommandLine.AbstractHandler.err(). - handleParseException(CommandLine.ParameterException, String[]) - Method in interface picocli.CommandLine.IExceptionHandler2
-
Deprecated.Handles a
ParameterExceptionthat occurred while parsing the command line arguments and optionally returns a list of results. - handleParseException(CommandLine.ParameterException, String[]) - Method in interface picocli.CommandLine.IParameterExceptionHandler
-
Handles a
ParameterExceptionthat occurred while parsing the command line arguments and returns an exit code suitable for returning fromCommandLine.execute(String...). - handleParseResult(List<CommandLine>, PrintStream, CommandLine.Help.Ansi) - Method in interface picocli.CommandLine.IParseResultHandler
-
Deprecated.Processes a List of
CommandLineobjects resulting from successfully parsing the command line arguments and optionally returns a list of results. - handleParseResult(List<CommandLine>, PrintStream, CommandLine.Help.Ansi) - Method in class picocli.CommandLine.RunAll
-
Prints help if requested, and otherwise executes the top-level command and all subcommands as
Runnable,CallableorMethod. - handleParseResult(List<CommandLine>, PrintStream, CommandLine.Help.Ansi) - Method in class picocli.CommandLine.RunFirst
-
Prints help if requested, and otherwise executes the top-level
RunnableorCallablecommand. - handleParseResult(List<CommandLine>, PrintStream, CommandLine.Help.Ansi) - Method in class picocli.CommandLine.RunLast
-
Prints help if requested, and otherwise executes the most specific
RunnableorCallablesubcommand. - handleParseResult(CommandLine.ParseResult) - Method in class picocli.CommandLine.AbstractParseResultHandler
-
Deprecated.Prints help if requested, and otherwise calls
CommandLine.AbstractParseResultHandler.handle(CommandLine.ParseResult). - handleParseResult(CommandLine.ParseResult) - Method in interface picocli.CommandLine.IParseResultHandler2
-
Deprecated.Processes the
ParseResultobject resulting from successfully parsing the command line arguments and returns a return value. - hasAtFileParameter() - Method in class picocli.CommandLine.Help
-
Returns true if the usage help should show the at file parameter in the parameter list, otherwise false.
- hasExitCode() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns
trueif an exit code was set withCommandLine.AbstractHandler.andExit(int), orfalse(the default) if the handler should not callSystem.exit(int)after processing completes. - hashCode() - Method in class picocli.CommandLine.Help.Ansi.Text
- hashCode() - Method in class picocli.CommandLine.Help.ColorScheme
- hashCode() - Method in class picocli.CommandLine.Help.Column
- hashCode() - Method in class picocli.CommandLine.Model.ArgGroupSpec
- hashCode() - Method in class picocli.CommandLine.Model.OptionSpec
- hashCode() - Method in class picocli.CommandLine.Model.PositionalParamSpec
- hashCode() - Method in class picocli.CommandLine.Range
- hashCode(boolean) - Static method in class picocli.codegen.util.Assert
- hashCode(Object) - Static method in class picocli.codegen.util.Assert
- hashCodeImpl() - Method in class picocli.CommandLine.Model.ArgSpec
- hasInitialValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Determines whether the option or positional parameter will be reset to the
CommandLine.Model.ArgSpec.Builder.initialValue()before parsing new input. - hasInitialValue() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Determines whether the option or positional parameter will be reset to the
CommandLine.Model.ArgSpec.Builder.initialValue()before parsing new input. - hasInitialValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Determines whether the option or positional parameter will be reset to the
CommandLine.Model.ArgSpec.initialValue()before parsing new input. - hasInitialValue() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- hasInitialValue(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Determines whether the option or positional parameter will be reset to the
CommandLine.Model.ArgSpec.Builder.initialValue()before parsing new input. - hasInitialValue(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Determines whether the option or positional parameter will be reset to the
CommandLine.Model.ArgSpec.Builder.initialValue()before parsing new input. - hasMatchedOption(char) - Method in class picocli.CommandLine.ParseResult
-
Returns whether an option whose aliases include the specified short name was matched on the command line.
- hasMatchedOption(String) - Method in class picocli.CommandLine.ParseResult
-
Returns whether an option whose aliases include the specified name was matched on the command line.
- hasMatchedOption(CommandLine.Model.OptionSpec) - Method in class picocli.CommandLine.ParseResult
-
Returns whether the specified option was matched on the command line.
- hasMatchedPositional(int) - Method in class picocli.CommandLine.ParseResult
-
Returns whether a positional parameter was matched at the specified position.
- hasMatchedPositional(CommandLine.Model.PositionalParamSpec) - Method in class picocli.CommandLine.ParseResult
-
Returns whether the specified positional parameter was matched on the command line.
- hasSubcommand() - Method in class picocli.CommandLine.ParseResult
-
Returns
trueif a subcommand was matched on the command line,falseotherwise. - header() - Element in annotation type picocli.CommandLine.Command
-
Optional summary description of the command, shown before the synopsis.
- header() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional header lines displayed at the top of the help message.
- header(Object...) - Method in class picocli.CommandLine.Help
-
Returns the command header text as a string.
- header(String...) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional header lines displayed at the top of the help message.
- headerHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the header section.
- headerHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the header section.
- headerHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the header text; the result of
String.format(headerHeading, params). - headerHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the heading preceding the header section.
- heading() - Element in annotation type picocli.CommandLine.ArgGroup
-
The heading of this group, used when generating the usage documentation.
- heading() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the heading of this group, used when generating the usage documentation.
- heading() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the heading of this group (may be
null), used when generating the usage documentation. - heading(String) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the heading of this group (may be
null), used when generating the usage documentation. - headingKey() - Element in annotation type picocli.CommandLine.ArgGroup
-
ResourceBundle key for this group's usage help message section heading.
- headingKey() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the heading key of this group, used to get the heading from a resource bundle.
- headingKey() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the heading key of this group (may be
null), used to get the heading from a resource bundle. - headingKey(String) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the heading key of this group, used to get the heading from a resource bundle.
- help() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Deprecated.
- help() - Method in class picocli.CommandLine.Model.OptionSpec
-
Deprecated.
- help() - Element in annotation type picocli.CommandLine.Option
-
This should rarely be used: the recommended attributes are
usageHelpandversionHelp. - help(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option disables validation of the other arguments, and returns this builder.
- Help(Object) - Constructor for class picocli.CommandLine.Help
-
Constructs a new
Helpinstance with a default color scheme, initialized from annotations on the specified class and superclasses. - Help(Object, CommandLine.Help.Ansi) - Constructor for class picocli.CommandLine.Help
-
Constructs a new
Helpinstance with a default color scheme, initialized from annotations on the specified class and superclasses. - Help(Object, CommandLine.Help.ColorScheme) - Constructor for class picocli.CommandLine.Help
- Help(CommandLine.Model.CommandSpec, CommandLine.Help.ColorScheme) - Constructor for class picocli.CommandLine.Help
-
Constructs a new
Helpinstance with the specified color scheme, initialized from annotations on the specified class and superclasses. - helpCommand() - Element in annotation type picocli.CommandLine.Command
-
Set this attribute to
trueif this subcommand is a help command, and required options and positional parameters of the parent command should not be validated. - helpCommand() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether this subcommand is a help command, and required options and positional parameters of the parent command should not be validated.
- helpCommand(boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets whether this is a help command and required parameter checking should be suspended.
- HelpCommand() - Constructor for class picocli.CommandLine.HelpCommand
- helpFactory() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the
IHelpFactorythat is used to construct the usage help message. - helpFactory(CommandLine.IHelpFactory) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets a new
IHelpFactoryto customize the usage help message. - hidden() - Element in annotation type picocli.CommandLine.Command
-
Set
hidden=trueif this command should not be included in the list of commands in the usage help of the parent command. - hidden() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option should be excluded from the usage message.
- hidden() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether this option should be excluded from the usage message.
- hidden() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether this option should be excluded from the usage message.
- hidden() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether this command should be hidden from the usage help message of the parent command.
- hidden() - Element in annotation type picocli.CommandLine.Option
-
Set
hidden=trueif this option should not be included in the usage help message. - hidden() - Element in annotation type picocli.CommandLine.Parameters
-
Set
hidden=trueif this parameter should not be included in the usage message. - hidden(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option should be excluded from the usage message, and returns this builder.
- hidden(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether this option should be excluded from the usage message, and returns this builder.
- hidden(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Set the hidden flag on this command to control whether to show or hide it in the help usage text of the parent command.
- hideParamSyntax() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax() - Element in annotation type picocli.CommandLine.Option
-
Returns whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax() - Element in annotation type picocli.CommandLine.Parameters
-
Returns whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether usage syntax decorations around the paramLabel should be suppressed.
- hideParamSyntax(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether usage syntax decorations around the paramLabel should be suppressed.
I
- indent - Variable in class picocli.CommandLine.Help.Column
-
Indent (number of empty spaces at the start of the column preceding the text value)
- indentWrappedLines - Variable in class picocli.CommandLine.Help.TextTable
-
By default, indent wrapped lines by 2 spaces.
- index() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.
- index() - Method in class picocli.CommandLine.Model.PositionalParamSpec
-
Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.
- index() - Element in annotation type picocli.CommandLine.Parameters
-
Specify an index ("0", or "1", etc.) to pick which of the command line arguments should be assigned to this field.
- index(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.
- index(CommandLine.Range) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.
- info(String, Object...) - Method in class picocli.CommandLine.Tracer
-
Prints the specified message if the current trace level is INFO or higher.
- INFO - Enum constant in enum picocli.CommandLine.TraceLevel
- INHERIT - Enum constant in enum picocli.CommandLine.ScopeType
-
The element exists in the command where the element is defined and all descendents (subcommands, sub-subcommands, etc.).
- inherited() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option is inherited from a parent command.
- inherited() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether this option is inherited from a parent command.
- inherited() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether this option is inherited from a parent command.
- inherited() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether this command is inherited from a parent command.
- inherited(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option is inherited from a parent command, and returns this builder.
- inherited(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether this option is inherited from a parent command, and returns this builder.
- init(ProcessingEnvironment) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
- init(ProcessingEnvironment) - Method in class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
- init(CommandLine, CommandLine.Help.Ansi, PrintStream, PrintStream) - Method in class picocli.CommandLine.HelpCommand
-
Deprecated.
- init(CommandLine, CommandLine.Help.Ansi, PrintStream, PrintStream) - Method in interface picocli.CommandLine.IHelpCommandInitializable
-
Deprecated.
- init(CommandLine, CommandLine.Help.ColorScheme, PrintWriter, PrintWriter) - Method in class picocli.CommandLine.HelpCommand
-
Initializes this object with the information needed to implement a help command that provides usage help for other commands.
- init(CommandLine, CommandLine.Help.ColorScheme, PrintWriter, PrintWriter) - Method in interface picocli.CommandLine.IHelpCommandInitializable2
-
Initializes this object with the information needed to implement a help command that provides usage help for other commands.
- InitializationException(String) - Constructor for exception class picocli.CommandLine.InitializationException
- InitializationException(String, Exception) - Constructor for exception class picocli.CommandLine.InitializationException
- initialValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the initial value this option or positional parameter.
- initialValue() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the initial value this option or positional parameter.
- initialValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the initial value of this option or positional parameter: the value that, if
CommandLine.Model.ArgSpec.hasInitialValue()is true, the option will be reset to before parsing (regardless of whether a default value exists), to clear values that would otherwise remain from parsing previous input. - initialValue(Object) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the initial value of this option or positional parameter to the specified value, and returns this builder.
- initialValue(Object) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the initial value of this option or positional parameter to the specified value, and returns this builder.
- insertSynopsisCommandName(int, CommandLine.Help.Ansi.Text) - Method in class picocli.CommandLine.Help
-
Returns the detailed synopsis text by inserting the command name before the specified text with options and positional parameters details.
- interactive() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option prompts the user to enter a value on the command line.
- interactive() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether this option prompts the user to enter a value on the command line.
- interactive() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether this option will prompt the user to enter a value on the command line.
- interactive() - Element in annotation type picocli.CommandLine.Option
-
Set
interactive=trueto make this option prompt the end user for a value (like a password). - interactive() - Element in annotation type picocli.CommandLine.Parameters
-
Set
interactive=trueif this positional parameter will prompt the end user for a value (like a password). - interactive(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option prompts the user to enter a value on the command line, and returns this builder.
- interactive(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether this option prompts the user to enter a value on the command line, and returns this builder.
- internalShowDefaultValue(boolean) - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether the default for this option or positional parameter should be shown, potentially overriding the specified global setting.
- internalShowDefaultValue(boolean) - Method in class picocli.CommandLine.Model.OptionSpec
- interpolateVariables() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether variables should be interpolated in String values.
- interpolateVariables(Boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets whether variables should be interpolated in String values.
- invoke(String, Class<?>, PrintStream, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - invoke(String, Class<?>, PrintStream, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - invoke(String, Class<?>, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - invoke(String, Class<?>, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - IOptionRenderer and IParameterRenderer - Search tag in class picocli.CommandLine.Help
- Section
- isAbbreviatedOptionsAllowed() - Method in class picocli.CommandLine
-
Returns whether abbreviation of option names should be allowed when matching options.
- isAbbreviatedSubcommandsAllowed() - Method in class picocli.CommandLine
-
Returns whether abbreviation of subcommands should be allowed when matching subcommands.
- isAccessible() - Method in class picocli.CommandLine.Model.MethodParam
- isAddMethodSubcommands() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether method commands should be added as subcommands.
- isAdjustLineBreaksForWideCJKCharacters() - Method in class picocli.CommandLine.Help.TextTable
- isAdjustLineBreaksForWideCJKCharacters() - Method in class picocli.CommandLine
-
Returns whether line breaks should take wide Chinese, Japanese and Korean characters into account for line-breaking purposes.
- isAllowOptionsAsOptionParameters() - Method in class picocli.CommandLine
-
Returns whether options can have parameter values that match the name of an option in this command, or whether such values should be rejected with a missing parameter exception.
- isAllowSubcommandsAsOptionParameters() - Method in class picocli.CommandLine
-
Returns whether options can have parameter values that match subcommand names or aliases, or whether such values should be rejected with a missing parameter exception.
- isAnnotationPresent(Class<? extends Annotation>) - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isArgGroup() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isArgSpec() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isArray() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns
trueif this type is an array multi-value type. - isBoolean() - Method in interface picocli.CommandLine.Model.ITypeInfo
- isCaseInsensitiveEnumValuesAllowed() - Method in class picocli.CommandLine
-
Returns whether the parser should ignore case when converting arguments to
enumvalues. - isCollection() - Method in interface picocli.CommandLine.Model.ITypeInfo
- isDebug() - Method in class picocli.CommandLine.Tracer
-
Returns whether the current trace level is DEBUG (the highest).
- isDefault() - Method in interface picocli.codegen.annotation.processing.ITypeMetaData
-
Returns
trueif the annotated element did not have the annotation attribute. - isEmpty() - Method in class picocli.CommandLine.ParseResult.GroupMatch
-
Returns
trueif this match has no matched arguments and no matched subgroups. - isEnabled(CommandLine.TraceLevel) - Method in enum picocli.CommandLine.TraceLevel
-
Returns whether messages at the specified
othertrace level would be printed for the current trace level. - isEnum() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns
trueifCommandLine.Model.ITypeInfo.getType()is an enum. - isExpandAtFiles() - Method in class picocli.CommandLine
-
Returns whether arguments starting with
'@'should be treated as the path to an argument file and its contents should be expanded into separate arguments for each line in the specified file. - isInfo() - Method in class picocli.CommandLine.Tracer
-
Returns whether the current trace level is INFO or higher.
- isInteractive() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isInterpolateVariables() - Method in class picocli.CommandLine
-
Returns whether variables should be interpolated in String values.
- isMap() - Method in interface picocli.CommandLine.Model.ITypeInfo
- isMethodParameter() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isMixin() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isMultiValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns
trueif this argument'sCommandLine.Model.ArgSpec.type()is an array, aCollectionor aMap,falseotherwise. - isMultiValue() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isMultiValue() - Method in interface picocli.CommandLine.Model.ITypeInfo
-
Returns
trueifCommandLine.Model.ITypeInfo.getType()is an array, map or collection. - isOff() - Method in class picocli.CommandLine.Tracer
-
Returns whether the current trace level is OFF (the lowest).
- isOption() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns
trueif this argument is a named option,falseotherwise. - isOption() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isOption() - Method in class picocli.CommandLine.Model.OptionSpec
- isOption() - Method in class picocli.CommandLine.Model.PositionalParamSpec
- isOptional() - Method in interface picocli.CommandLine.Model.ITypeInfo
- isOptionsCaseInsensitive() - Method in class picocli.CommandLine
-
Returns whether upper case and lower case should be ignored when matching option names.
- isOverwrittenOptionsAllowed() - Method in class picocli.CommandLine
-
Returns whether options for single-value fields can be specified multiple times on the command line.
- isParameter() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isParentCommand() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isPositional() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns
trueif this argument is a positional parameter,falseotherwise. - isPositional() - Method in class picocli.CommandLine.Model.OptionSpec
- isPositional() - Method in class picocli.CommandLine.Model.PositionalParamSpec
- isPosixClusteredShortOptionsAllowed() - Method in class picocli.CommandLine
-
Returns whether the parser accepts clustered short options.
- isRelative() - Method in class picocli.CommandLine.Range
-
Returns
trueif this Range contains a relative index like"1+", orfalseif this Range does not contain any relative indices. - isSpec() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isSplitQuotedStrings() - Method in class picocli.CommandLine
-
Deprecated.Most applications should not change the default. The rare application that does need to split parameter values without respecting quotes should use
CommandLine.Model.ParserSpec.splitQuotedStrings(boolean). - isStopAtPositional() - Method in class picocli.CommandLine
-
Returns whether the parser interprets the first positional parameter as "end of options" so the remaining arguments are all treated as positional parameters.
- isStopAtUnmatched() - Method in class picocli.CommandLine
-
Returns whether the parser should stop interpreting options and positional parameters as soon as it encounters an unmatched option.
- isSubcommandsCaseInsensitive() - Method in class picocli.CommandLine
-
Returns whether upper case and lower case should be ignored when matching subcommands.
- isSubgroupOf(CommandLine.Model.ArgGroupSpec) - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns
trueif this group is a subgroup (or a nested sub-subgroup, to any level of depth) of the specified group,falseotherwise. - isToggleBooleanFlags() - Method in class picocli.CommandLine
-
Returns whether the value of boolean flag options should be "toggled" when the option is matched.
- isTrimQuotes() - Method in class picocli.CommandLine
-
Returns whether the parser should trim quotes from command line arguments.
- isUnknownOption() - Method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns
trueif the first unmatched command line arguments resembles an option,falseotherwise. - isUnmatched() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- isUnmatchedArgumentsAllowed() - Method in class picocli.CommandLine
-
Returns whether the end user may specify arguments on the command line that are not matched to any option or parameter fields.
- isUnmatchedOptionsAllowedAsOptionParameters() - Method in class picocli.CommandLine
-
Returns whether options can have parameter values that resemble an option, or whether such values should be rejected as unknown options.
- isUnmatchedOptionsArePositionalParams() - Method in class picocli.CommandLine
-
Returns whether arguments on the command line that resemble an option should be treated as positional parameters.
- isUnresolved() - Method in class picocli.CommandLine.Range
-
Returns
trueif this range contains a relative index like"1+", or variables that have not been expanded yet,falseif this Range does not contain any variables or relative indices. - isUnspecified() - Method in class picocli.CommandLine.Range
-
Returns
trueif this Range is a default value,falseif the user specified this value. - isUsageHelpAutoWidth() - Method in class picocli.CommandLine
-
Returns whether picocli should attempt to detect the terminal size and adjust the usage help message width to take the full terminal width.
- isUsageHelpRequested() - Method in class picocli.CommandLine
-
Returns
trueif an option annotated withCommandLine.Option.usageHelp()was specified on the command line. - isUsageHelpRequested() - Method in class picocli.CommandLine.ParseResult
-
Returns
trueif one of the options that was matched on the command line is ausageHelpoption. - isUseSimplifiedAtFiles() - Method in class picocli.CommandLine
-
Returns whether to use a simplified argument file format that is compatible with JCommander.
- isValueGettable() - Method in class picocli.CommandLine.Model.ArgSpec
-
Check whether the
CommandLine.Model.ArgSpec.getValue()method is able to get an actual value from the currentCommandLine.Model.ArgSpec.getter(). - isVariable - Variable in class picocli.CommandLine.Range
-
Deprecated.use
CommandLine.Range.isVariable()instead - isVariable() - Method in class picocli.CommandLine.Range
-
Returns
trueif this range has no fixed upper bound. - isVersionHelpRequested() - Method in class picocli.CommandLine
-
Returns
trueif an option annotated withCommandLine.Option.versionHelp()was specified on the command line. - isVersionHelpRequested() - Method in class picocli.CommandLine.ParseResult
-
Returns
trueif one of the options that was matched on the command line is aversionHelpoption. - isWarn() - Method in class picocli.CommandLine.Tracer
-
Returns whether the current trace level is WARN or higher.
- italic - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- ITypeMetaData - Interface in picocli.codegen.annotation.processing
-
Abstraction over annotation attributes that take a class (or array of classes) as their value.
J
- JniConfigGenerator - Class in picocli.codegen.aot.graalvm
- JniConfigGenerator() - Constructor for class picocli.codegen.aot.graalvm.JniConfigGenerator
- join(CommandLine.Help.Ansi, int, boolean, String[], StringBuilder, Object...) - Static method in class picocli.CommandLine.Help
-
Formats each of the specified values and appends it to the specified StringBuilder.
- join(CommandLine.Help.Ansi, int, String[], StringBuilder, Object...) - Static method in class picocli.CommandLine.Help
-
Deprecated.
- JulLogFormatter - Class in picocli.codegen.util
- JulLogFormatter() - Constructor for class picocli.codegen.util.JulLogFormatter
K
- keyValuesMap(String...) - Static method in class picocli.CommandLine.Model.UsageMessageSpec
-
Creates and returns a
Mapthat contains an entry for each specified String that is in"key:value"format.
L
- Layered API - Search tag in class picocli.CommandLine.Help
- Section
- layout(CommandLine.Model.ArgSpec, CommandLine.Help.Ansi.Text[][]) - Method in class picocli.CommandLine.Help.Layout
-
Copies the specified text values into the correct cells in the
CommandLine.Help.TextTable. - Layout - Search tag in class picocli.CommandLine.Help
- Section
- Layout(CommandLine.Help.ColorScheme, int) - Constructor for class picocli.CommandLine.Help.Layout
-
Constructs a Layout with the specified color scheme, a new default TextTable, the default option renderer, and the default parameter renderer.
- Layout(CommandLine.Help.ColorScheme, CommandLine.Help.TextTable) - Constructor for class picocli.CommandLine.Help.Layout
-
Constructs a Layout with the specified color scheme, the specified TextTable, the default option renderer, and the default parameter renderer.
- Layout(CommandLine.Help.ColorScheme, CommandLine.Help.TextTable, CommandLine.Help.IOptionRenderer, CommandLine.Help.IParameterRenderer) - Constructor for class picocli.CommandLine.Help.Layout
-
Constructs a Layout with the specified color scheme, the specified TextTable, the specified option renderer and the specified parameter renderer.
- limitSplit() - Method in class picocli.CommandLine.Model.ParserSpec
-
Returns true if arguments should be split first before any further processing and the number of parts resulting from the split is limited to the max arity of the argument.
- limitSplit(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
-
Sets whether arguments should be split first before any further processing.
- LOCAL - Enum constant in enum picocli.CommandLine.ScopeType
-
The element only exists in the current command.
- Location - Search tag in class picocli.CommandLine.PropertiesDefaultProvider
- Section
- logInfo(String) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Prints a compile-time NOTE message.
- longestName() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns the longest option name.
- longOptionsMaxWidth() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the maximum usage help long options column max width to the specified value.
- longOptionsMaxWidth(int) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the maximum usage help long options column max width to the specified value.
M
- main(String...) - Static method in class picocli.AutoComplete
-
Generates a bash completion script for the specified command class.
- main(String...) - Static method in class picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator
-
Runs this class as a standalone application, printing the resulting JSON String to a file or to
System.out. - main(String...) - Static method in class picocli.codegen.aot.graalvm.JniConfigGenerator
-
Runs this class as a standalone application, printing the resulting JSON String to a file or to
System.out. - main(String...) - Static method in class picocli.codegen.aot.graalvm.ReflectionConfigGenerator
-
Runs this class as a standalone application, printing the resulting JSON String to a file or to
System.out. - main(String...) - Static method in class picocli.codegen.aot.graalvm.ResourceConfigGenerator
-
Runs this class as a standalone application, printing the resulting JSON String to a file or to
System.out. - main(String[]) - Static method in class picocli.codegen.docgen.manpage.ManPageGenerator
-
Invokes
ManPageGenerator.generateManPage(Config, CommandLine.Model.CommandSpec...)to generate man pages for the user-specified@Command-annotated classes. - makeNegative(String, CommandLine.Model.CommandSpec) - Method in interface picocli.CommandLine.INegatableOptionTransformer
-
Returns the negative form of the specified option name for the parser to recognize when parsing command line arguments.
- makeNegative(String, CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.RegexTransformer
-
Returns the negative form of the specified option name for the parser to recognize when parsing command line arguments.
- makeSynopsis(String, CommandLine.Model.CommandSpec) - Method in interface picocli.CommandLine.INegatableOptionTransformer
-
Returns the documentation string to show in the synopsis and usage help message for the specified option.
- makeSynopsis(String, CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.RegexTransformer
-
Returns the documentation string to show in the synopsis and usage help message for the specified option.
- makeSynopsisFromParts(int, CommandLine.Help.Ansi.Text, CommandLine.Help.Ansi.Text, CommandLine.Help.Ansi.Text, CommandLine.Help.Ansi.Text, CommandLine.Help.Ansi.Text) - Method in class picocli.CommandLine.Help
-
Concatenates the command name and the specified synopsis parts and returns a fully rendered synopsis String.
- ManPageGenerator - Class in picocli.codegen.docgen.manpage
-
Generates AsciiDoc files in a special format that can be converted to HTML, PDF and Unix Man pages.
- ManPageGenerator() - Constructor for class picocli.codegen.docgen.manpage.ManPageGenerator
- mapFallbackValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the fallback value for this Map option or positional parameter: the value that is put into the Map when only the key is specified for the option or positional parameter, like
-Dkeyinstead of-Dkey=value. - mapFallbackValue() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the fallback value for this Map option or positional parameter: the value that is put into the Map when only the key is specified for the option or positional parameter, like
-Dkeyinstead of-Dkey=value. - mapFallbackValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the fallback value for this Map option or positional parameter: the value that is put into the Map when only the key is specified for the option or positional parameter, like
-Dkeyinstead of-Dkey=value. - mapFallbackValue() - Element in annotation type picocli.CommandLine.Option
-
For options of type Map, setting the
mapFallbackValueto any value allows end user to specify key-only parameters for this option. - mapFallbackValue() - Element in annotation type picocli.CommandLine.Parameters
-
For positional parameters of type Map, setting the
mapFallbackValueto any value allows end user to specify key-only parameters for this parameter. - mapFallbackValue(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the fallback value for this Map option or positional parameter: the value that is put into the Map when only the key is specified for the option or positional parameter, like
-Dkeyinstead of-Dkey=value. - mapFallbackValue(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the fallback value for this Map option or positional parameter: the value that is put into the Map when only the key is specified for the option or positional parameter, like
-Dkeyinstead of-Dkey=value. - matchedArgs() - Method in class picocli.CommandLine.ParseResult
-
Returns a list of matched options and positional parameters, in order they were matched on the command line.
- matchedOption(char) - Method in class picocli.CommandLine.ParseResult
-
Returns the option with the specified short name, or
nullif no option with that name was matched on the command line. - matchedOption(String) - Method in class picocli.CommandLine.ParseResult
-
Returns the option with the specified name, or
nullif no option with that name was matched on the command line. - matchedOptions() - Method in class picocli.CommandLine.ParseResult
-
Returns a list of matched options, in order they were matched on the command line.
- matchedOptionsSet() - Method in class picocli.CommandLine.ParseResult
-
Returns a set of matched options.
- matchedOptionValue(char, T) - Method in class picocli.CommandLine.ParseResult
-
Returns the command line argument value of the option with the specified name, converted to the type of the option, or the specified default value if no option with the specified name was matched.
- matchedOptionValue(String, T) - Method in class picocli.CommandLine.ParseResult
-
Returns the command line argument value of the option with the specified name, converted to the type of the option, or the specified default value if no option with the specified name was matched.
- matchedPositional(int) - Method in class picocli.CommandLine.ParseResult
-
Returns the first
PositionalParamSpecthat matched an argument at the specified position, ornullif no positional parameters were matched at that position. - matchedPositionals() - Method in class picocli.CommandLine.ParseResult
-
Returns a list of matched positional parameters, in order they were matched on the command line.
- matchedPositionals(int) - Method in class picocli.CommandLine.ParseResult
-
Returns all
PositionalParamSpecobjects that matched an argument at the specified position, or an empty list if no positional parameters were matched at that position. - matchedPositionalsSet() - Method in class picocli.CommandLine.ParseResult
-
Returns a set of matched positional parameters.
- matchedPositionalValue(int, T) - Method in class picocli.CommandLine.ParseResult
-
Returns the command line argument value of the positional parameter at the specified position, converted to the type of the positional parameter, or the specified default value if no positional parameter was matched at that position.
- matchedSubgroups() - Method in class picocli.CommandLine.ParseResult.GroupMatch
-
Returns matches for the subgroups, if any.
- matchedValues(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.ParseResult.GroupMatch
-
Returns the values matched for the specified argument, converted to the type of the argument.
- matches() - Method in class picocli.CommandLine.ParseResult.GroupMatchContainer
-
Returns the list of
GroupMatchinstances:ArgGroupSpecs with a multiplicity greater than one may be matched multiple times. - max - Variable in class picocli.CommandLine.Range
-
Deprecated.use
CommandLine.Range.max()instead - max() - Method in class picocli.CommandLine.Range
-
Returns the upper bound of this range (inclusive), or
Integer.MAX_VALUEif this range has no upper bound. - max(int) - Method in class picocli.CommandLine.Range
-
Returns a new Range object with the
maxvalue replaced by the specified value. - MaxValuesExceededException(CommandLine, String) - Constructor for exception class picocli.CommandLine.MaxValuesExceededException
- messages() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the Messages for this argument group specification, or
null. - messages() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the Messages for this arg specification, or
null. - messages() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the Messages for this usage help message specification, or
null. - messages(CommandLine.Model.Messages) - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Sets the Messages for this ArgGroupSpec, and returns this ArgGroupSpec.
- messages(CommandLine.Model.Messages) - Method in class picocli.CommandLine.Model.ArgSpec
-
Sets the Messages for this ArgSpec, and returns this ArgSpec.
- messages(CommandLine.Model.Messages) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the Messages for this usageMessage specification, and returns this UsageMessageSpec.
- Messages(CommandLine.Model.CommandSpec, String) - Constructor for class picocli.CommandLine.Model.Messages
- Messages(CommandLine.Model.CommandSpec, String, ResourceBundle) - Constructor for class picocli.CommandLine.Model.Messages
- Messages(CommandLine.Model.CommandSpec, ResourceBundle) - Constructor for class picocli.CommandLine.Model.Messages
- MethodParam(Method, int) - Constructor for class picocli.CommandLine.Model.MethodParam
- min - Variable in class picocli.CommandLine.Range
-
Deprecated.use
CommandLine.Range.min()instead - min() - Method in class picocli.CommandLine.Range
-
Returns the lower bound of this range (inclusive).
- min(int) - Method in class picocli.CommandLine.Range
-
Returns a new Range object with the
minvalue replaced by the specified value. - MissingParameterException(CommandLine, Collection<CommandLine.Model.ArgSpec>, String) - Constructor for exception class picocli.CommandLine.MissingParameterException
- MissingParameterException(CommandLine, CommandLine.Model.ArgSpec, String) - Constructor for exception class picocli.CommandLine.MissingParameterException
- MissingTypeConverterException(CommandLine, String) - Constructor for exception class picocli.CommandLine.MissingTypeConverterException
- MIXEE - Enum constant in enum picocli.CommandLine.Spec.Target
-
Injects the
CommandSpecof the "mixee" command that receives the options and other command elements defined here, ornullif this commands is not mixed into another command. - mixinAnnotatedElements() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a map of the mixin names to mixin
IAnnotatedElementobjects for this command. - mixins() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a map of the mixin names to mixin
CommandSpecobjects configured for this command. - mixinStandardHelpOptions() - Element in annotation type picocli.CommandLine.Command
-
Adds the standard
-hand--helpusageHelp options and-Vand--versionversionHelp options to the options of this command. - mixinStandardHelpOptions() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns
trueif the standard help options have been mixed in with this command,falseotherwise. - mixinStandardHelpOptions(boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets whether the standard help options should be mixed in with this command.
- modelTransformer() - Element in annotation type picocli.CommandLine.Command
-
Returns the model transformer for this command.
- modelTransformer() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the model transformer for this CommandSpec instance.
- modelTransformer(CommandLine.IModelTransformer) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the model transformer for this CommandSpec instance.
- multiplicity() - Element in annotation type picocli.CommandLine.ArgGroup
-
Determines how often this group can be specified on the command line;
"0..1"(optional) by default. - multiplicity() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the multiplicity of this group: how many occurrences it may have on the command line;
"0..1"(optional) by default. - multiplicity() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the multiplicity of this group: how many occurrences it may have on the command line;
"0..1"(optional) by default. - multiplicity(String) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the multiplicity of this group: how many occurrences it may have on the command line;
"0..1"(optional) by default. - multiplicity(CommandLine.Range) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the multiplicity of this group: how many occurrences it may have on the command line;
"0..1"(optional) by default. - MutuallyExclusiveArgsException(CommandLine, String) - Constructor for exception class picocli.CommandLine.MutuallyExclusiveArgsException
N
- name() - Element in annotation type picocli.CommandLine.Command
-
Program name to show in the synopsis.
- name() - Element in annotation type picocli.CommandLine.Mixin
-
Optionally specify a name that the mixin object can be retrieved with from the
CommandSpec. - name() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns name of this command.
- name(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the String to use as the program name in the synopsis line of the help message.
- names() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns all names of this command, including
CommandLine.Model.CommandSpec.name()andCommandLine.Model.CommandSpec.aliases(). - names() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns one or more option names.
- names() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns one or more option names.
- names() - Element in annotation type picocli.CommandLine.Option
-
One or more option names.
- names(String...) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Replaces the option names with the specified values.
- NativeImageConfigGeneratorProcessor - Class in picocli.codegen.aot.graalvm.processor
- NativeImageConfigGeneratorProcessor() - Constructor for class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
- negatable() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether a negative version for this boolean option is automatically added.
- negatable() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns whether a negative version for this boolean option is automatically added.
- negatable() - Element in annotation type picocli.CommandLine.Option
-
(Only for boolean options): set this to automatically add a negative version for this boolean option.
- negatable(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether a negative version for this boolean option is automatically added, and returns this builder.
- negatableOptionTransformer() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the
INegatableOptionTransformerused to create the negative form of negatable options. - negatableOptionTransformer(CommandLine.INegatableOptionTransformer) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the
INegatableOptionTransformerused to create the negative form of negatable options. - negatedOptionsMap() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a map of the negated option names to option spec objects configured for this command.
- NEVER - Enum constant in enum picocli.CommandLine.Help.Visibility
- notNull(T, String) - Static method in class picocli.codegen.util.Assert
-
Throws a NullPointerException if the specified object is null.
- NULL_VALUE - Static variable in annotation type picocli.CommandLine.Option
-
Special value that can be used in some annotation attributes to designate
null. - NULL_VALUE - Static variable in annotation type picocli.CommandLine.Parameters
-
Special value that can be used in some annotation attributes to designate
null.
O
- off() - Method in interface picocli.CommandLine.Help.Ansi.IStyle
-
Returns the ANSI escape code for turning this style off.
- off() - Method in enum picocli.CommandLine.Help.Ansi.Style
- off(CommandLine.Help.Ansi.IStyle...) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Returns the concatenated ANSI escape codes for turning all specified styles off.
- OFF - Enum constant in enum picocli.CommandLine.Help.Ansi
-
Forced OFF: never emit ANSI escape code regardless of the platform.
- OFF - Enum constant in enum picocli.CommandLine.TraceLevel
- OK - Static variable in class picocli.CommandLine.ExitCode
-
Return value from the
executeandexecuteHelpRequestmethods signifying successful termination. - on() - Method in interface picocli.CommandLine.Help.Ansi.IStyle
-
Returns the ANSI escape code for turning this style on.
- on() - Method in enum picocli.CommandLine.Help.Ansi.Style
- on(CommandLine.Help.Ansi.IStyle...) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Returns the concatenated ANSI escape codes for turning all specified styles on.
- ON - Enum constant in enum picocli.CommandLine.Help.Ansi
-
Forced ON: always emit ANSI escape code regardless of the platform.
- ON_DEMAND - Enum constant in enum picocli.CommandLine.Help.Visibility
- OPTION_PROJECT - Static variable in class picocli.codegen.aot.graalvm.processor.NativeImageConfigGeneratorProcessor
-
Name of the annotation processor option that can be used to control the actual location where the generated file(s) are to be written to, relative to the
NativeImageConfigGeneratorProcessor.BASE_PATH. - optionArity(Field) - Static method in class picocli.CommandLine.Range
-
Returns a new
Rangebased on theCommandLine.Option.arity()annotation on the specified field, or the field type's default arity if no arity was specified. - optionList() - Method in class picocli.CommandLine.Help
-
Returns a description of all options in this command, including any argument groups.
- optionList(CommandLine.Help.Layout, Comparator<CommandLine.Model.OptionSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help
-
Sorts all
Optionswith the specifiedcomparator(if the comparator is non-null), then adds all non-hidden options to the specified TextTable and returns the result of TextTable.toString(). - optionListExcludingGroups(List<CommandLine.Model.OptionSpec>) - Method in class picocli.CommandLine.Help
-
Returns a description of the specified list of options.
- optionListExcludingGroups(List<CommandLine.Model.OptionSpec>, CommandLine.Help.Layout, Comparator<CommandLine.Model.OptionSpec>, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help
-
Sorts all
Optionswith the specifiedcomparator(if the comparator is non-null), then adds the specified options to the specified TextTable and returns the result of TextTable.toString(). - optionListGroupSections() - Method in class picocli.CommandLine.Help
-
Returns a rendered section of the usage help message that contains the argument groups that have a non-
nullheading. - optionListHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the options list.
- optionListHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the options list.
- optionListHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the option list; an empty string if there are no options, otherwise the result of
String.format(optionListHeading, params). - optionListHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the heading preceding the options list.
- optionParams(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for option parameters in this color scheme builder and returns this builder.
- optionParamStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for option parameters in this color scheme builder.
- optionParamStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for option parameters in this color scheme.
- optionParamText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all optionParam styles applied to the specified optionParam string.
- optionRenderer - Variable in class picocli.CommandLine.Help.Layout
- optionRenderer() - Method in class picocli.CommandLine.Help.Layout
-
Returns the IOptionRenderer used to render options to Text before adding this text to the TextTable in this layout.
- options() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the list of options configured for this group.
- options() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of options configured for this command.
- options(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme.
- optionsCaseInsensitive() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether the options are case-insensitive.
- optionsCaseInsensitive(boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the case-insensitivity of options.
- optionSectionGroups() - Method in class picocli.CommandLine.Help
-
Returns the list of
ArgGroupSpecinstances in this command that have a non-nullheading, most deeply nested argument groups first. - optionsMap() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a map of the option names to option spec objects configured for this command.
- optionStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for options in this color scheme builder.
- optionStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for options in this color scheme.
- optionText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all option styles applied to the specified option string.
- order() - Element in annotation type picocli.CommandLine.ArgGroup
-
Determines the position in the options list in the usage help message at which this group should be shown.
- order() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the position in the options list in the usage help message at which this group should be shown.
- order() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the position in the options list in the usage help message at which this group should be shown.
- order() - Method in interface picocli.CommandLine.Model.IOrdered
-
Returns the position in the options list in the usage help message at which this element should be shown.
- order() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the position in the options list in the usage help message at which this option should be shown.
- order() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns the position in the options list in the usage help message at which this option should be shown.
- order() - Element in annotation type picocli.CommandLine.Option
-
When
@Command(sortOptions = false)is specified, this attribute can be used to control the order in which options are listed in the usage help message. - order(int) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the position in the options list in the usage help message at which this group should be shown, and returns this builder.
- order(int) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the position in the options list in the usage help message at which this option should be shown, and returns this builder.
- originalArgs() - Method in class picocli.CommandLine.ParseResult
-
Returns the original command line arguments that were passed to the
CommandLine.parseArgs(String...)method, before @-file expansion. - originalArgs(String[]) - Method in class picocli.CommandLine.ParseResult.Builder
-
Sets the specified original command line arguments that were passed to the
CommandLine.parseArgs(String...)method, before @-file expansion. - originallyRequired() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the original value of the option's required attribute, regardless of whether the option is used in an exclusive group or not.
- originalStringValues() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the original command line arguments matched by this option or positional parameter spec.
- originalValue() - Method in class picocli.CommandLine.Range
-
Returns the original String value that this range was constructed with.
- out() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns the stream to print command output to.
- overflow - Variable in class picocli.CommandLine.Help.Column
-
Policy that determines how to handle values larger than the column width.
- OverwrittenOptionException(CommandLine, CommandLine.Model.ArgSpec, String) - Constructor for exception class picocli.CommandLine.OverwrittenOptionException
- overwrittenOptionsAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- overwrittenOptionsAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
P
- parameterArity(Field) - Static method in class picocli.CommandLine.Range
-
Returns a new
Rangebased on theCommandLine.Parameters.arity()annotation on the specified field, or the field type's default arity if no arity was specified. - parameterConsumer() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the custom parameter handler for this option or positional parameter, or
null. - parameterConsumer() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the custom parameter handler for this option or positional parameter, or
null. - parameterConsumer() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns a custom
IParameterConsumerto temporarily suspend picocli's parsing logic and process one or more command line arguments in a custom manner, ornull. - parameterConsumer() - Element in annotation type picocli.CommandLine.Option
-
Optionally specify a custom
IParameterConsumerto temporarily suspend picocli's parsing logic and process one or more command line arguments in a custom manner. - parameterConsumer() - Element in annotation type picocli.CommandLine.Parameters
-
Optionally specify a custom
IParameterConsumerto temporarily suspend picocli's parsing logic and process one or more command line arguments in a custom manner. - parameterConsumer(CommandLine.IParameterConsumer) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the parameterConsumer for this option or positional parameter, and returns this builder.
- parameterConsumer(CommandLine.IParameterConsumer) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the parameterConsumer for this option or positional parameter, and returns this builder.
- ParameterException(CommandLine, String) - Constructor for exception class picocli.CommandLine.ParameterException
-
Constructs a new ParameterException with the specified CommandLine and error message.
- ParameterException(CommandLine, String, Throwable) - Constructor for exception class picocli.CommandLine.ParameterException
-
Constructs a new ParameterException with the specified CommandLine and error message.
- ParameterException(CommandLine, String, Throwable, CommandLine.Model.ArgSpec, String) - Constructor for exception class picocli.CommandLine.ParameterException
-
Constructs a new ParameterException with the specified CommandLine and error message.
- ParameterException(CommandLine, String, CommandLine.Model.ArgSpec, String) - Constructor for exception class picocli.CommandLine.ParameterException
-
Constructs a new ParameterException with the specified CommandLine and error message.
- parameterIndex(Field) - Static method in class picocli.CommandLine.Range
-
Returns a new
Rangebased on theCommandLine.Parameters.index()annotation on the specified field. - ParameterIndexGapException(String) - Constructor for exception class picocli.CommandLine.ParameterIndexGapException
- parameterLabelRenderer() - Method in class picocli.CommandLine.Help
-
Option and positional parameter value label renderer used for the synopsis line(s) and the option list.
- parameterList() - Method in class picocli.CommandLine.Help
-
Returns the rendered positional parameters section of the usage help message for all positional parameters in this command.
- parameterList(List<CommandLine.Model.PositionalParamSpec>) - Method in class picocli.CommandLine.Help
-
Returns the rendered positional parameters section of the usage help message for the specified positional parameters.
- parameterList(List<CommandLine.Model.PositionalParamSpec>, CommandLine.Help.Layout, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help
-
Returns the rendered section of the usage help message that lists the specified parameters with their descriptions.
- parameterList(CommandLine.Help.Layout, CommandLine.Help.IParamLabelRenderer) - Method in class picocli.CommandLine.Help
-
Returns the rendered section of the usage help message that lists all positional parameters in this command with their descriptions.
- parameterListHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the parameters list.
- parameterListHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the parameter list.
- parameterListHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the positional parameter list; an empty string if there are no positional parameters, otherwise the result of
String.format(parameterListHeading, params). - parameterListHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional heading preceding the parameter list.
- parameterRenderer - Variable in class picocli.CommandLine.Help.Layout
- parameterRenderer() - Method in class picocli.CommandLine.Help.Layout
-
Returns the IParameterRenderer used to render positional params to Text before adding this text to the TextTable in this layout.
- parameters(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for positional parameters in this color scheme builder and returns this builder.
- parameterStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for positional parameters in this color scheme builder.
- parameterStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for positional parameters in this color scheme.
- parameterText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all parameter styles applied to the specified parameter string.
- paramLabel() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the name of the option or positional parameter used in the usage help message.
- paramLabel() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the name of the option or positional parameter used in the usage help message.
- paramLabel() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the name of the option or positional parameter used in the usage help message.
- paramLabel() - Element in annotation type picocli.CommandLine.Option
-
Specify a
paramLabelfor the option parameter to be used in the usage help message. - paramLabel() - Element in annotation type picocli.CommandLine.Parameters
-
Specify a
paramLabelfor the parameter to be used in the usage help message. - paramLabel(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the name of the option or positional parameter used in the usage help message, and returns this builder.
- paramLabel(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the name of the option or positional parameter used in the usage help message, and returns this builder.
- parent() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the parent command of this subcommand, or
nullif this is a top-level command. - parent() - Method in class picocli.CommandLine.Model.Messages
- parent(CommandLine.Model.CommandSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the parent command of this subcommand.
- parentCommandElements() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of program elements annotated with
{@literal @}ParentCommandconfigured for this command. - parentGroup() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the parent group that this group is part of, or
nullif this group is not part of a composite. - parse(String) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Parses the specified comma-separated sequence of style descriptors and returns the associated styles.
- parse(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Converts the specified markup styles to an array of
CommandLine.Help.Ansi.IStyleobjects. - parse(String...) - Method in class picocli.CommandLine
-
Deprecated.use
CommandLine.parseArgs(String...)instead - parseArgs(String...) - Method in class picocli.CommandLine
-
Expands any @-files in the specified command line arguments, then parses the arguments and returns a
ParseResultwith the options, positional parameters, and subcommands (if any) that were recognized and initialized during the parsing process. - parser() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the parser specification for this command.
- parser(CommandLine.Model.ParserSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Initializes the parser specification for this command from the specified settings and returns this commandSpec.
- ParserSpec() - Constructor for class picocli.CommandLine.Model.ParserSpec
- parseWithHandler(CommandLine.IParseResultHandler2<R>, String[]) - Method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - parseWithHandler(CommandLine.IParseResultHandler, PrintStream, String...) - Method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - parseWithHandlers(CommandLine.IParseResultHandler2<R>, CommandLine.IExceptionHandler2<R>, String...) - Method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - parseWithHandlers(CommandLine.IParseResultHandler, PrintStream, CommandLine.Help.Ansi, CommandLine.IExceptionHandler, String...) - Method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead - picocli - package picocli
-
Provides classes and interfaces for the main picocli command line parsing and
autocompletionfunctionality. - picocli.codegen.annotation.processing - package picocli.codegen.annotation.processing
-
Provides classes and interfaces that form a framework for creating picocli annotation processors.
- picocli.codegen.aot.graalvm - package picocli.codegen.aot.graalvm
-
Provides tools for generating GraalVM configuration files from a picocli CommandSpec model.
- picocli.codegen.aot.graalvm.processor - package picocli.codegen.aot.graalvm.processor
-
Provides an annotation processor that generates GraalVM configuration files based on a picocli CommandSpec model.
- picocli.codegen.docgen.manpage - package picocli.codegen.docgen.manpage
-
Provides tools for generating man-page documentation in AsciiDoc format from a picocli CommandSpec model.
- picocli.codegen.util - package picocli.codegen.util
-
Provides utility classes for internal use in the picocli-codegen module.
- picocli.shell.jline2 - package picocli.shell.jline2
-
Provides classes and interfaces for integrating picocli with JLine 2.
- PicocliException(String) - Constructor for exception class picocli.CommandLine.PicocliException
- PicocliException(String, Throwable) - Constructor for exception class picocli.CommandLine.PicocliException
- PicocliJLineCompleter - Class in picocli.shell.jline2
-
Implementation of the JLine 2
Completerinterface that generates completion candidates for the specified command line based on theCommandLine.Model.CommandSpecthat thisPicocliJLineCompleterwas constructed with. - PicocliJLineCompleter(CommandLine.Model.CommandSpec) - Constructor for class picocli.shell.jline2.PicocliJLineCompleter
-
Constructs a new
PicocliJLineCompleterfor the given command spec. - plainString() - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns the plain text without any formatting.
- populateCommand(T, String...) - Static method in class picocli.CommandLine
-
Convenience method that initializes the specified annotated object from the specified command line arguments.
- populateSpec(Class<T>, String...) - Static method in class picocli.CommandLine
-
Convenience method that derives the command specification from the specified interface class, and returns an instance of the specified interface.
- positionalParameters() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the list of positional parameters configured for this group.
- positionalParameters() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of positional parameters configured for this command.
- posixClusteredShortOptionsAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- posixClusteredShortOptionsAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- posixOptionsMap() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a map of the short (single character) option names to option spec objects configured for this command.
- preprocess(Stack<String>, CommandLine.Model.CommandSpec, CommandLine.Model.ArgSpec, Map<String, Object>) - Method in interface picocli.CommandLine.IParameterPreprocessor
-
Called when either the command, option or positional parameter that has this preprocessor configured was recognized by the picocli parser.
- preprocessor() - Element in annotation type picocli.CommandLine.Command
-
Returns the preprocessor for this command.
- preprocessor() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the custom
IParameterPreprocessorto either replace or complement picocli's parsing logic for the parameter(s) of this option or position, ornull. - preprocessor() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the custom
IParameterPreprocessorto either replace or complement picocli's parsing logic for the parameter(s) of this option or position, ornull. - preprocessor() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns a custom
IParameterPreprocessorto either replace or complement picocli's parsing logic for the parameter(s) of this option or position. - preprocessor() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the preprocessor for this CommandSpec instance.
- preprocessor() - Element in annotation type picocli.CommandLine.Option
-
Returns the preprocessor for this option.
- preprocessor() - Element in annotation type picocli.CommandLine.Parameters
-
Returns the preprocessor for this positional parameter.
- preprocessor(CommandLine.IParameterPreprocessor) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the custom
IParameterPreprocessorfor this option or position, and returns this builder. - preprocessor(CommandLine.IParameterPreprocessor) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the custom
IParameterPreprocessorfor this option or position, and returns this builder. - preprocessor(CommandLine.IParameterPreprocessor) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the preprocessor for this CommandSpec instance.
- printHelpIfRequested(List<CommandLine>, PrintStream, PrintStream, CommandLine.Help.Ansi) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.executeHelpRequest(ParseResult)instead - printHelpIfRequested(List<CommandLine>, PrintStream, PrintStream, CommandLine.Help.ColorScheme) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.executeHelpRequest(ParseResult)instead - printHelpIfRequested(List<CommandLine>, PrintStream, CommandLine.Help.Ansi) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.printHelpIfRequested(ParseResult)instead - printHelpIfRequested(CommandLine.ParseResult) - Static method in class picocli.CommandLine
-
Delegates to
CommandLine.executeHelpRequest(ParseResult). - printSuggestions(PrintStream) - Method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns
trueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse. - printSuggestions(PrintWriter) - Method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns
trueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse. - printSuggestions(CommandLine.ParameterException, PrintStream) - Static method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns
trueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse. - printSuggestions(CommandLine.ParameterException, PrintWriter) - Static method in exception class picocli.CommandLine.UnmatchedArgumentException
-
Returns
trueand prints suggested solutions to the specified writer if such solutions exist, otherwise returnsfalse. - printVersionHelp(PrintStream) - Method in class picocli.CommandLine
-
Delegates to
CommandLine.printVersionHelp(PrintStream, Help.Ansi)with the ANSI setting of the configured color scheme. - printVersionHelp(PrintStream, CommandLine.Help.Ansi) - Method in class picocli.CommandLine
-
Prints version information from the
CommandLine.Command.version()annotation to the specifiedPrintStream. - printVersionHelp(PrintStream, CommandLine.Help.Ansi, Object...) - Method in class picocli.CommandLine
-
Prints version information from the
CommandLine.Command.version()annotation to the specifiedPrintStream. - printVersionHelp(PrintWriter) - Method in class picocli.CommandLine
-
Delegates to
CommandLine.printVersionHelp(PrintWriter, Help.Ansi, Object...)with the ANSI setting of the configured color scheme. - printVersionHelp(PrintWriter, CommandLine.Help.Ansi, Object...) - Method in class picocli.CommandLine
-
Prints version information from the
CommandLine.Command.version()annotation to the specifiedPrintWriter. - process(Set<? extends TypeElement>, RoundEnvironment) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
- processingEnv - Variable in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
The ProcessingEnvironment set by the
AbstractCommandSpecProcessor.init(ProcessingEnvironment)method. - prompt() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the text displayed to the end user for an interactive option or positional parameter when asking for user input.
- prompt() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the text displayed to the end user for an interactive option or positional parameter when asking for user input.
- prompt() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the text displayed to the end user for an interactive option or positional parameter when asking for user input.
- prompt() - Element in annotation type picocli.CommandLine.Option
-
Use this attribute to customize the text displayed to the end user for an interactive option when asking for user input.
- prompt() - Element in annotation type picocli.CommandLine.Parameters
-
Use this attribute to customize the text displayed to the end user for an interactive positional parameter when asking for user input.
- prompt(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the text displayed to the end user for an interactive option or positional parameter when asking for user input.
- prompt(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the text displayed to the end user for an interactive option or positional parameter when asking for user input.
- PropertiesDefaultProvider() - Constructor for class picocli.CommandLine.PropertiesDefaultProvider
-
Default constructor, used when this default value provider is specified in the annotations:
- PropertiesDefaultProvider(File) - Constructor for class picocli.CommandLine.PropertiesDefaultProvider
-
This constructor loads default values from the specified properties file.
- PropertiesDefaultProvider(Properties) - Constructor for class picocli.CommandLine.PropertiesDefaultProvider
-
This constructor loads default values from the specified properties object.
- putValue(int, int, CommandLine.Help.Ansi.Text) - Method in class picocli.CommandLine.Help.TextTable
-
Writes the specified value into the cell at the specified row and column and returns the last row and column written to.
Q
- qualifiedName() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the String to use as the program name in the synopsis line of the help message: this command's
name, preceded by the qualified name of the parent command, if any, separated by a space. - qualifiedName(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns this command's fully qualified name, which is its
name, preceded by the qualified name of the parent command, if this command has a parent command.
R
- Range(int, int, boolean, boolean, String) - Constructor for class picocli.CommandLine.Range
-
Constructs a new Range object with the specified parameters.
- ReflectionConfigGenerator - Class in picocli.codegen.aot.graalvm
-
ReflectionConfigGeneratorgenerates a JSON String with the program elements that will be accessed reflectively in a picocli-based application, in order to compile this application ahead-of-time into a native executable with GraalVM. - ReflectionConfigGenerator() - Constructor for class picocli.codegen.aot.graalvm.ReflectionConfigGenerator
- registerConverter(Class<K>, CommandLine.ITypeConverter<K>) - Method in class picocli.CommandLine
-
Registers the specified type converter for the specified class.
- remove(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
(INCUBATING) Removes the specified option spec or positional parameter spec from the list of configured arguments to expect.
- removePattern(String) - Method in class picocli.CommandLine.RegexTransformer.Builder
-
Removes the negative replacement and synopsis replacement for the specified regular expression.
- removeSubcommand(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Removes the subcommand with the specified name or alias from this CommandSpec and returns the
CommandLineinstance that was associated with the specified name, ornullof the specified name was not associated with a subcommand. - render(CommandLine.Help) - Method in interface picocli.CommandLine.IHelpSectionRenderer
-
Renders a section of the usage help, like header heading, header, synopsis heading, synopsis, description heading, description, etc.
- render(CommandLine.Model.OptionSpec, CommandLine.Help.IParamLabelRenderer, CommandLine.Help.ColorScheme) - Method in interface picocli.CommandLine.Help.IOptionRenderer
-
Returns a text representation of the specified option and its parameter(s) if any.
- render(CommandLine.Model.PositionalParamSpec, CommandLine.Help.IParamLabelRenderer, CommandLine.Help.ColorScheme) - Method in interface picocli.CommandLine.Help.IParameterRenderer
-
Returns a text representation of the specified positional parameter.
- renderedDescription() - Method in class picocli.CommandLine.Model.ArgSpec
-
Deprecated.Use
CommandLine.Model.ArgSpec.description()instead - renderParameterLabel(CommandLine.Model.ArgSpec, CommandLine.Help.Ansi, List<CommandLine.Help.Ansi.IStyle>) - Method in interface picocli.CommandLine.Help.IParamLabelRenderer
-
Returns a text rendering of the option parameter or positional parameter; returns an empty string
""if the option is a boolean and does not take a parameter. - required() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this is a required option or positional parameter.
- required() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether this is a required option or positional parameter.
- required() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether this is a required option or positional parameter without a default value.
- required() - Element in annotation type picocli.CommandLine.Option
-
Indicates whether this option is required.
- required(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this is a required option or positional parameter, and returns this builder.
- required(boolean) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether this is a required option or positional parameter, and returns this builder.
- requiredArgs() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the required options and positional parameters in this group; may be empty but not
null. - requiredArgs() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of required options and positional parameters configured for this command.
- requiredOptionMarker() - Element in annotation type picocli.CommandLine.Command
-
Prefix required options with this character in the options list.
- requiredOptionMarker() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the character used to prefix required options in the options list.
- requiredOptionMarker(char) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the character used to prefix required options in the options list.
- reset - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- resetOriginalStringValues() - Method in class picocli.CommandLine.Model.ArgSpec
-
Sets the
originalStringValuesto a new list instance. - resetStringValues() - Method in class picocli.CommandLine.Model.ArgSpec
-
Sets the
stringValuesto a new list instance. - resetStyle() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the style that "resets" the style state to neutral.
- resourceBundle() - Element in annotation type picocli.CommandLine.Command
-
Set the base name of the ResourceBundle to find option and positional parameters descriptions, as well as usage help message sections and section headings.
- resourceBundle() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the resource bundle for this command.
- resourceBundle() - Method in class picocli.CommandLine.Model.Messages
-
Returns the ResourceBundle of this object or
null. - resourceBundle(ResourceBundle) - Method in class picocli.CommandLine.Model.CommandSpec
-
Initializes the resource bundle for this command: sets the
UsageMessageSpec.messagesto aMessagesobject created from this command spec and the specified bundle, and then sets theArgSpec.messagesof all options and positional parameters in this command to the sameMessagesinstance. - resourceBundle(CommandLine.Model.Messages) - Static method in class picocli.CommandLine.Model.Messages
-
Returns the ResourceBundle of the specified Messages object or
nullif the specified Messages object isnull. - resourceBundleBaseName() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the resource bundle base name for this command.
- resourceBundleBaseName() - Method in class picocli.CommandLine.Model.Messages
-
Returns the base name of the ResourceBundle of this object or
null. - resourceBundleBaseName(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Initializes the resource bundle for this command: sets the
UsageMessageSpec.messagesto aMessagesobject created from this command spec and the specified bundle, and then sets theArgSpec.messagesof all options and positional parameters in this command to the sameMessagesinstance. - resourceBundleBaseName(CommandLine.Model.Messages) - Static method in class picocli.CommandLine.Model.Messages
-
Returns the ResourceBundle of the specified Messages object or
nullif the specified Messages object isnull. - ResourceConfigGenerator - Class in picocli.codegen.aot.graalvm
-
ResourceConfigGeneratorgenerates a JSON String with the resource bundles and other classpath resources that should be included in the Substrate VM native image. - ResourceConfigGenerator() - Constructor for class picocli.codegen.aot.graalvm.ResourceConfigGenerator
- returnResultOrExit(R) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Convenience method for subclasses that returns the specified result object if no exit code was set, or otherwise, if an exit code was set, calls
System.exitwith the configured exit code to terminate the currently running Java virtual machine. - reverse - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- richStackTraceString(Throwable) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a String with the
error stylesapplied to the stack trace lines showing the throwable class name and error message (including "Caused by:..." lines), and thestack trace stylesapplied to the remaining stack trace of lines the specified Throwable. - root() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the root option or positional parameter (on the parent command), if this option or positional parameter was inherited; or
nullif it was not. - root() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the root option or positional parameter (on the parent command), if this option or positional parameter was inherited; or
nullif it was not. - root() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the root option or positional parameter (on the parent command), if this option or positional parameter was inherited; or
nullif it was not. - root() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the root command: the top-level command of the hierarchy, never
null. - root(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the root object for this inherited option, and returns this builder.
- root(CommandLine.Model.ArgSpec) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the root object for this inherited option, and returns this builder.
- row - Variable in class picocli.CommandLine.Help.TextTable.Cell
-
Table row index (zero based).
- rowCount() - Method in class picocli.CommandLine.Help.TextTable
-
Returns the current number of rows of this
TextTable. - run() - Method in class picocli.AutoComplete.GenerateCompletion
- run() - Method in class picocli.CommandLine.HelpCommand
-
Invokes
usagefor the specified command, or for the parent command. - run(Class<R>, CommandLine.IFactory, PrintStream, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(Class<R>, CommandLine.IFactory, PrintStream, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(Class<R>, CommandLine.IFactory, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(Class<R>, CommandLine.IFactory, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(R, PrintStream, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(R, PrintStream, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(R, PrintStream, CommandLine.Help.Ansi, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - run(R, String...) - Static method in class picocli.CommandLine
-
Deprecated.use
CommandLine.execute(String...)instead - RunAll() - Constructor for class picocli.CommandLine.RunAll
- RunFirst() - Constructor for class picocli.CommandLine.RunFirst
- RunLast() - Constructor for class picocli.CommandLine.RunLast
S
- scope() - Element in annotation type picocli.CommandLine.Command
-
Returns whether subcommands inherit their attributes from this parent command.
- scope() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the
CommandLine.Model.IScopethat determines where the setter sets the value (or the getter gets the value) of the annotated program element associated with this group. - scope() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the
CommandLine.Model.IScopethat determines where the setter sets the value (or the getter gets the value) of the annotated program element associated with this group. - scope() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the binding
CommandLine.Model.IScopethat determines the instance of the enclosing element where the setter sets the value (or the getter gets the value) of this argument. - scope() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the binding
CommandLine.Model.IScopethat determines the instance of the enclosing element where the setter sets the value (or the getter gets the value) of this argument. - scope() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the binding
CommandLine.Model.IScopethat determines on which object to set the value (or from which object to get the value) of this argument. - scope() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- scope() - Element in annotation type picocli.CommandLine.Option
-
Determines on which command(s) this option exists: on this command only (the default), or whether this is a "global" option that is applied to this command and all subcommands, sub-subcommands, etc.
- scope() - Element in annotation type picocli.CommandLine.Parameters
-
Determines on which command(s) this positional parameter exists: on this command only (the default), or whether this is a "global" parameter that is applied to this command and all subcommands, sub-subcommands, etc.
- scope(CommandLine.Model.IScope) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the
CommandLine.Model.IScopethat targets where the setter sets the value of the annotated program element associated with this group, and returns this builder. - scope(CommandLine.Model.IScope) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the binding
CommandLine.Model.IScopethat targets where the setter sets the value, and returns this builder. - scope(CommandLine.Model.IScope) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the binding
CommandLine.Model.IScopethat targets where the setter sets the value, and returns this builder. - scopeType() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the scope of this argument.
- scopeType() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the scope of this argument.
- scopeType() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the scope of this argument; it it local, or inherited (it applies to this command as well as all sub- and sub-subcommands).
- scopeType() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the scope of this argument; it it local, or inherited (it applies to this command as well as all sub- and sub-subcommands).
- scopeType(CommandLine.ScopeType) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the scope of where this argument applies: only this command, or also all sub (and sub-sub) commands, and returns this builder.
- scopeType(CommandLine.ScopeType) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the scope of where this argument applies: only this command, or also all sub (and sub-sub) commands, and returns this builder.
- scopeType(CommandLine.ScopeType) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the scope of where this argument applies: only this command, or also all sub (and sub-sub) commands, and returns this builder.
- SECTION_KEY_AT_FILE_PARAMETER - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_COMMAND_LIST - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_COMMAND_LIST_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_DESCRIPTION - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_DESCRIPTION_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_END_OF_OPTIONS - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_EXIT_CODE_LIST - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_EXIT_CODE_LIST_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_FOOTER - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_FOOTER_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_HEADER - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_HEADER_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_OPTION_LIST - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_OPTION_LIST_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_PARAMETER_LIST - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_PARAMETER_LIST_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_SYNOPSIS - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- SECTION_KEY_SYNOPSIS_HEADING - Static variable in class picocli.CommandLine.Model.UsageMessageSpec
- sectionKeys() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the section keys in the order that the usage help message should render the sections.
- sectionKeys(List<String>) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the section keys in the order that the usage help message should render the sections.
- sectionMap() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the map of section keys and renderers used to construct the usage help message.
- sectionMap(Map<String, CommandLine.IHelpSectionRenderer>) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the map of section keys and renderers used to construct the usage help message to a copy of the specified map.
- self() - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Returns
thisto allow method chaining when calling the setters for a fluent API. - self() - Method in class picocli.CommandLine.DefaultExceptionHandler
-
Deprecated.
- self() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns this builder.
- self() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns this builder.
- self() - Method in class picocli.CommandLine.RunAll
- self() - Method in class picocli.CommandLine.RunFirst
- self() - Method in class picocli.CommandLine.RunLast
- SELF - Enum constant in enum picocli.CommandLine.Spec.Target
-
Injects the
CommandSpecof the command where this@Spec-annotated program element is declared. - separator() - Element in annotation type picocli.CommandLine.Command
-
String that separates options from option parameters.
- separator() - Method in interface picocli.CommandLine.Help.IParamLabelRenderer
-
Returns the separator between option name and param label.
- separator() - Method in class picocli.CommandLine.Model.ParserSpec
-
Returns the String to use as the separator between options and option parameters.
- separator(String) - Method in class picocli.CommandLine.Model.ParserSpec
-
Sets the String to use as the separator between options and option parameters.
- set(T) - Method in class picocli.codegen.annotation.processing.AnnotatedElementHolder
-
This implementation does nothing.
- set(T) - Method in interface picocli.CommandLine.Model.ISetter
-
Sets the new value of the option or positional parameter.
- setAbbreviatedOptionsAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether abbreviated option names should be matched.
- setAbbreviatedSubcommandsAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether abbreviated subcommands should be matched.
- setAccessible(boolean) - Method in class picocli.CommandLine.Model.MethodParam
- setAddMethodSubcommands(Boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets whether method commands should be added as subcommands.
- setAdjustLineBreaksForWideCJKCharacters(boolean) - Method in class picocli.CommandLine.Help.TextTable
- setAdjustLineBreaksForWideCJKCharacters(boolean) - Method in class picocli.CommandLine
-
Sets whether line breaks should take wide Chinese, Japanese and Korean characters into account, and returns this UsageMessageSpec.
- setAllowOptionsAsOptionParameters(boolean) - Method in class picocli.CommandLine
-
Sets whether options can have parameter values that match the name of an option in this command, or whether such values should be rejected with a missing parameter exception.
- setAllowSubcommandsAsOptionParameters(boolean) - Method in class picocli.CommandLine
-
Sets whether options can have parameter values that match subcommand names or aliases, or whether such values should be rejected with a missing parameter exception.
- setAtFileCommentChar(Character) - Method in class picocli.CommandLine
-
Sets the character that starts a single-line comment or
nullif all content of argument files should be interpreted as arguments (without comments). - setCaseInsensitiveEnumValuesAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether the parser should ignore case when converting arguments to
enumvalues. - setColorScheme(CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine
-
Sets the color scheme to use when printing help.
- setCommandName(String) - Method in class picocli.CommandLine
-
Sets the command name (also called program name) displayed in the usage help synopsis to the specified value.
- setDefaultValueProvider(CommandLine.IDefaultValueProvider) - Method in class picocli.CommandLine
-
Sets a default value provider for the command and sub-commands
- setEndOfOptionsDelimiter(String) - Method in class picocli.CommandLine
-
Sets the end-of-options delimiter that signals that the remaining command line arguments should be treated as positional parameters.
- setErr(PrintWriter) - Method in class picocli.CommandLine
-
Sets the writer to use when printing diagnostic (error) messages during command execution.
- setExecutionExceptionHandler(CommandLine.IExecutionExceptionHandler) - Method in class picocli.CommandLine
-
Sets a custom handler for dealing with exceptions that occurred in the
Callable,RunnableorMethoduser object of a command when the command was executed via the execute method. - setExecutionResult(Object) - Method in class picocli.CommandLine
-
Sets the result of calling the business logic on the command's user object.
- setExecutionStrategy(CommandLine.IExecutionStrategy) - Method in class picocli.CommandLine
-
Sets the execution strategy that the
executemethod should use to invoke the business logic on the user objects of this command and/or the user-specified subcommand(s). - setExitCodeExceptionMapper(CommandLine.IExitCodeExceptionMapper) - Method in class picocli.CommandLine
-
Sets the mapper used by the
executemethod to map exceptions to exit codes. - setExpandAtFiles(boolean) - Method in class picocli.CommandLine
-
Sets whether arguments starting with
'@'should be treated as the path to an argument file and its contents should be expanded into separate arguments for each line in the specified file. - setHelpFactory(CommandLine.IHelpFactory) - Method in class picocli.CommandLine
-
Sets a new
IHelpFactoryto customize the usage help message. - setHelpSectionKeys(List<String>) - Method in class picocli.CommandLine
-
Sets the section keys in the order that the usage help message should render the sections.
- setHelpSectionMap(Map<String, CommandLine.IHelpSectionRenderer>) - Method in class picocli.CommandLine
-
Sets the map of section keys and renderers used to construct the usage help message.
- setInterpolateVariables(boolean) - Method in class picocli.CommandLine
-
Sets whether variables should be interpolated in String values.
- setLevel(CommandLine.TraceLevel) - Method in class picocli.CommandLine.Tracer
-
Sets the trace level that needs to be matched or exceeded for internal tracing statements to be printed.
- setLoadBundles(boolean) - Static method in class picocli.CommandLine.Model.Messages
-
During annotation processing, resource bundles may not be available on the classpath and thereby cause failures.
- setLoadResourceBundles(boolean) - Static method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
During annotation processing, resource bundles may not be available on the classpath and thereby cause failures.
- setNegatableOptionTransformer(CommandLine.INegatableOptionTransformer) - Method in class picocli.CommandLine
-
Sets the
INegatableOptionTransformerused to create the negative form of negatable options. - setOptionsCaseInsensitive(boolean) - Method in class picocli.CommandLine
-
Sets whether upper case and lower case should be ignored when matching option names.
- setOut(PrintWriter) - Method in class picocli.CommandLine
-
Sets the writer to use when printing user-requested usage help or version help during command execution.
- setOverwrittenOptionsAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether options for single-value fields can be specified multiple times on the command line without a
CommandLine.OverwrittenOptionExceptionbeing thrown. - setParameterExceptionHandler(CommandLine.IParameterExceptionHandler) - Method in class picocli.CommandLine
-
Sets the handler for dealing with invalid user input when the command is executed.
- setPosixClusteredShortOptionsAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether short options like
-x -v -f SomeFilecan be clustered together like-xvfSomeFile. - setResourceBundle(ResourceBundle) - Method in class picocli.CommandLine
-
Sets the ResourceBundle containing usage help message strings.
- setSeparator(String) - Method in class picocli.CommandLine
-
Sets the String the parser uses to separate option names from option values to the specified value.
- setSplitQuotedStrings(boolean) - Method in class picocli.CommandLine
-
Deprecated.Most applications should not change the default. The rare application that does need to split parameter values without respecting quotes should use
CommandLine.Model.ParserSpec.splitQuotedStrings(boolean). - setStopAtPositional(boolean) - Method in class picocli.CommandLine
-
Sets whether the parser interprets the first positional parameter as "end of options" so the remaining arguments are all treated as positional parameters.
- setStopAtUnmatched(boolean) - Method in class picocli.CommandLine
-
Sets whether the parser should stop interpreting options and positional parameters as soon as it encounters an unmatched option.
- setSubcommandsCaseInsensitive(boolean) - Method in class picocli.CommandLine
-
Sets whether upper case and lower case should be ignored when matching subcommands.
- setter() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the
CommandLine.Model.ISetterthat is responsible for modifying the value of the annotated program element associated with this group. - setter() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the
CommandLine.Model.ISetterthat is responsible for modifying the value of the annotated program element associated with this group. - setter() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the
CommandLine.Model.ISetterthat is responsible for modifying the value of this argument. - setter() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the
CommandLine.Model.ISetterthat is responsible for modifying the value of this argument. - setter() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the
CommandLine.Model.ISetterthat is responsible for modifying the value of this argument. - setter() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- setter() - Method in class picocli.CommandLine.Model.UnmatchedArgsBinding
-
Returns the setter responsible for consuming the unmatched arguments.
- setter(CommandLine.Model.ISetter) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the
CommandLine.Model.ISetterthat is responsible for modifying the value of the annotated program element associated with this group, and returns this builder. - setter(CommandLine.Model.ISetter) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the
CommandLine.Model.ISetterthat is responsible for modifying the value of this argument, and returns this builder. - setter(CommandLine.Model.ISetter) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the
CommandLine.Model.ISetterthat is responsible for modifying the value of this argument, and returns this builder. - setToggleBooleanFlags(boolean) - Method in class picocli.CommandLine
-
Sets whether the value of boolean flag options should be "toggled" when the option is matched.
- setTrimQuotes(boolean) - Method in class picocli.CommandLine
-
Sets whether the parser should trim quotes from command line arguments before processing them.
- setUnmatchedArgumentsAllowed(boolean) - Method in class picocli.CommandLine
-
Sets whether the end user may specify unmatched arguments on the command line without a
CommandLine.UnmatchedArgumentExceptionbeing thrown. - setUnmatchedOptionsAllowedAsOptionParameters(boolean) - Method in class picocli.CommandLine
-
Sets whether options can have parameter values that resemble an option, or whether such values should be rejected as unknown options.
- setUnmatchedOptionsArePositionalParams(boolean) - Method in class picocli.CommandLine
-
Sets whether arguments on the command line that resemble an option should be treated as positional parameters.
- setUsageHelpAutoWidth(boolean) - Method in class picocli.CommandLine
-
Sets whether picocli should attempt to detect the terminal size and adjust the usage help message width to take the full terminal width.
- setUsageHelpLongOptionsMaxWidth(int) - Method in class picocli.CommandLine
-
Returns the maximum usage help long options column max width to the specified value.
- setUsageHelpWidth(int) - Method in class picocli.CommandLine
-
Sets the maximum width of the usage help message.
- setUseSimplifiedAtFiles(boolean) - Method in class picocli.CommandLine
-
Sets whether to use a simplified argument file format that is compatible with JCommander.
- setValue(T) - Method in class picocli.CommandLine.Model.ArgSpec
-
Sets the value of this argument to the specified value and returns the previous value.
- setValue(T, CommandLine) - Method in class picocli.CommandLine.Model.ArgSpec
-
Deprecated.use
CommandLine.Model.ArgSpec.setValue(Object)instead. This was a design mistake. - shortestFirst() - Static method in class picocli.CommandLine.Help
-
Sorts short strings before longer strings.
- shortestName() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns the shortest option name.
- showAtFileInUsageHelp() - Element in annotation type picocli.CommandLine.Command
-
Specify
trueto show a[@<filename>...]entry in the synopsis and parameter list of the usage help message. - showAtFileInUsageHelp() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether to show a
[@<filename>...]entry in the synopsis and parameter list of the usage help message. - showAtFileInUsageHelp(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether to show a
[@<filename>...]entry in the synopsis and parameter list of the usage help message. - showDefaultValue() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option or positional parameter's default value should be shown in the usage help.
- showDefaultValue() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns whether this option or positional parameter's default value should be shown in the usage help.
- showDefaultValue() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns whether this option or positional parameter's default value should be shown in the usage help.
- showDefaultValue() - Element in annotation type picocli.CommandLine.Option
-
Use this attribute to control for a specific option whether its default value should be shown in the usage help message.
- showDefaultValue() - Element in annotation type picocli.CommandLine.Parameters
-
Use this attribute to control for a specific positional parameter whether its default value should be shown in the usage help message.
- showDefaultValue(CommandLine.Help.Visibility) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option or positional parameter's default value should be shown in the usage help, and returns this builder.
- showDefaultValue(CommandLine.Help.Visibility) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets whether this option or positional parameter's default value should be shown in the usage help, and returns this builder.
- showDefaultValues() - Element in annotation type picocli.CommandLine.Command
-
Specify
trueto show default values in the description column of the options list (except for boolean options). - showDefaultValues() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether the options list in the usage help message should show default values for all non-boolean options.
- showDefaultValues(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether the options list in the usage help message should show default values for all non-boolean options.
- showEndOfOptionsDelimiterInUsageHelp() - Element in annotation type picocli.CommandLine.Command
-
Specify
trueto show a[--]"End of options" entry in the synopsis and option list of the usage help message. - showEndOfOptionsDelimiterInUsageHelp() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether to show a
[--](End of Options) entry in the synopsis and options list of the usage help message. - showEndOfOptionsDelimiterInUsageHelp(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether to show a
[--](End of Options) entry in the synopsis and options list of the usage help message. - SOFTWARE - Static variable in class picocli.CommandLine.ExitCode
-
Return value from the
executemethod signifying internal software error: an exception occurred when invoking the Runnable, Callable or Method user object of a command. - sortOptions() - Element in annotation type picocli.CommandLine.Command
-
Specify
falseto show Options in declaration order in the option list of the usage help message (or to sort options by their order index if set). - sortOptions() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether the options list in the usage help message should be sorted alphabetically.
- sortOptions(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether the options list in the usage help message should be sorted alphabetically.
- sortSynopsis() - Element in annotation type picocli.CommandLine.Command
-
Specify
falseto show options in declaration order in the synopsis of the usage help message (or to sort options by their order index if set). - sortSynopsis() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns whether the options in the synopsis should be sorted alphabetically.
- sortSynopsis(boolean) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets whether the options in the synopsis should be sorted alphabetically.
- SPAN - Enum constant in enum picocli.CommandLine.Help.Column.Overflow
- specElements() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the list of program elements annotated with
{@literal @}Specconfigured for this group. - specElements() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the list of program elements annotated with
{@literal @}Specconfigured for this group. - specElements() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of program elements annotated with
{@literal @}Specconfigured for this command. - split() - Element in annotation type picocli.CommandLine.Option
-
Specify a regular expression to use to split option parameter values before applying them to the field.
- split() - Element in annotation type picocli.CommandLine.Parameters
-
Specify a regular expression to use to split positional parameter values before applying them to the field.
- splitLines() - Method in class picocli.CommandLine.Help.Ansi.Text
- splitQuotedStrings() - Method in class picocli.CommandLine.Model.ParserSpec
- splitQuotedStrings(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- splitRegex() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns a regular expression to split option parameter values or
""if the value should not be split. - splitRegex() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns a regular expression to split option parameter values or
""if the value should not be split. - splitRegex() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns a regular expression to split option parameter values or
""if the value should not be split. - splitRegex(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets a regular expression to split option parameter values or
""if the value should not be split, and returns this builder. - splitRegex(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets a regular expression to split option parameter values or
""if the value should not be split, and returns this builder. - splitRegexSynopsisLabel() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns a regular expression to split option parameter for usage information.
- splitRegexSynopsisLabel() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns a regular expression to split option parameter for usage information.
- splitRegexSynopsisLabel() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns a regular expression to split option parameter for usage information.
- splitRegexSynopsisLabel(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets a regular expression to split option parameter for usage information.
- splitRegexSynopsisLabel(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets a regular expression to split option parameter for usage information.
- splitSynopsisLabel() - Element in annotation type picocli.CommandLine.Option
-
Specify the string to display for the
splitregular expression in the usage help synopsis. - splitSynopsisLabel() - Element in annotation type picocli.CommandLine.Parameters
-
Specify a string to show the split option parameter values in usage
- stackTraces(CommandLine.Help.Ansi.IStyle...) - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Adds the specified styles to the registered styles for stack traces in this color scheme builder and returns this builder.
- stackTraceStyles() - Method in class picocli.CommandLine.Help.ColorScheme.Builder
-
Returns the registered styles for stack traces in this color scheme builder.
- stackTraceStyles() - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns the registered styles for stack traces in this color scheme.
- stackTraceText(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all stackTrace styles applied to all lines in the specified stackTrace string.
- stackTraceText(Throwable) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a Text with all stackTrace styles applied to all lines in the stack trace of the specified Throwable.
- Standard Exit Codes - Search tag in class picocli.CommandLine.ExitCode
- Section
- stopAtPositional() - Method in class picocli.CommandLine.Model.ParserSpec
- stopAtPositional(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- stopAtUnmatched() - Method in class picocli.CommandLine.Model.ParserSpec
- stopAtUnmatched(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- string(String) - Method in enum picocli.CommandLine.Help.Ansi
-
Returns a String where any markup like
@|bg(red),white,underline some text|@is converted to ANSI escape codes if this Ansi is ON, or suppressed if this Ansi is OFF. - string(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a String where any markup like
@|bg(red),white,underline some text|@is converted to the styles defined in this ColorScheme (if its Ansi mode is ON), or to the plain text without the markup (if this ColorScheme's Ansi mode is OFF). - stringValues() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the untyped command line arguments matched by this option or positional parameter spec.
- subcommand() - Method in class picocli.CommandLine.ParseResult
-
Returns the
ParseResultfor the last subcommand of this command that was matched on the command line, ornullif no subcommand was matched. - subcommand(CommandLine.ParseResult) - Method in class picocli.CommandLine.ParseResult.Builder
-
Sets the specified
ParseResultfor a subcommand that was matched on the command line. - subcommands() - Element in annotation type picocli.CommandLine.Command
-
A list of classes to instantiate and register as subcommands.
- subcommands() - Method in class picocli.CommandLine.Help
-
Returns the map of non-hidden subcommand
Helpinstances for this command Help. - subcommands() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a read-only view of the subcommand map.
- subcommands() - Method in class picocli.CommandLine.ParseResult
-
Returns a list with the
ParseResultobjects for each subcommand of this command that was matched on the command line or an empty list if no subcommands were matched. - Subcommands - Search tag in class picocli.CommandLine.PropertiesDefaultProvider
- Section
- subcommandsCaseInsensitive() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether the subcommands are case-insensitive.
- subcommandsCaseInsensitive(boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the case-insensitivity of subcommands.
- subcommandsRepeatable() - Element in annotation type picocli.CommandLine.Command
-
Returns whether the subcommands of this command are repeatable, that is, whether such subcommands can occur multiple times and may be followed by sibling commands instead of only by child commands of the subcommand.
- subcommandsRepeatable() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns whether the subcommands of this command are repeatable, that is, whether such subcommands can occur multiple times and may be followed by sibling commands instead of just child commands.
- subcommandsRepeatable(boolean) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets whether the subcommands of this command are repeatable, that is, whether such subcommands can occur multiple times and may be followed by sibling commands instead of just child commands.
- subgroups() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the list of subgroups that this group is composed of.
- subgroups() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Return the subgroups that this group is composed of; may be empty but not
null. - substring(int) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns a new
Textinstance that is a substring of this Text. - substring(int, int) - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns a new
Textinstance that is a substring of this Text. - synopsis() - Method in class picocli.CommandLine.Help
-
Deprecated.use
CommandLine.Help.synopsis(int)instead - synopsis() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the synopsis of this group.
- synopsis(int) - Method in class picocli.CommandLine.Help
-
Returns a synopsis for the command, reserving the specified space for the synopsis heading.
- synopsisAutoIndentThreshold() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the fraction of the usage help
CommandLine.Model.UsageMessageSpec.width()that is the threshold up to which the 2nd line and subsequent lines of a multi-line synopsis should be aligned to the end of the command name. - synopsisAutoIndentThreshold(double) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the fraction of the usage help
CommandLine.Model.UsageMessageSpec.width()that is the threshold up to which the 2nd line and subsequent lines of a multi-line synopsis should be aligned to the end of the command name. - synopsisHeading() - Element in annotation type picocli.CommandLine.Command
-
Set the heading preceding the synopsis text.
- synopsisHeading() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the optional heading preceding the synopsis.
- synopsisHeading(Object...) - Method in class picocli.CommandLine.Help
-
Returns the text displayed before the synopsis text; the result of
String.format(synopsisHeading, params). - synopsisHeading(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the optional heading preceding the synopsis.
- synopsisHeadingLength() - Method in class picocli.CommandLine.Help
-
Returns the number of characters the synopsis heading will take on the same line as the synopsis.
- synopsisIndent() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the indentation to use on the 2nd line and subsequent lines of a multi-line synopsis when the length of the synopsis heading and the fully qualified command name exceed the
CommandLine.Model.UsageMessageSpec.width()times theCommandLine.Model.UsageMessageSpec.synopsisAutoIndentThreshold(),-1by default. - synopsisIndent(int) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the indentation to use on the 2nd line and subsequent lines of a multi-line synopsis when the length of the synopsis heading and the fully qualified command name exceed the
CommandLine.Model.UsageMessageSpec.synopsisAutoIndentThreshold()fraction of theCommandLine.Model.UsageMessageSpec.width(),-1by default. - synopsisSubcommandLabel() - Element in annotation type picocli.CommandLine.Command
-
Specify the String to show in the synopsis for the subcommands of this command.
- synopsisSubcommandLabel() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the String representing the subcommands in the synopsis.
- synopsisSubcommandLabel(String) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the String representing the subcommands in the synopsis.
- synopsisText(CommandLine.Help.ColorScheme, Set<CommandLine.Model.ArgSpec>) - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the synopsis of this group.
T
- table - Variable in class picocli.CommandLine.Help.Layout
- text(String) - Method in enum picocli.CommandLine.Help.Ansi
-
Returns a new Text object for this Ansi mode, encapsulating the specified string which may contain markup like
@|bg(red),white,underline some text|@. - text(String) - Method in class picocli.CommandLine.Help.ColorScheme
-
Returns a new Text object for this ColorScheme, encapsulating the specified string which may contain markup like
@|bg(red),white,underline some text|@. - Text - Search tag in class picocli.CommandLine.Help
- Section
- Text(int) - Constructor for class picocli.CommandLine.Help.Ansi.Text
-
Constructs a Text with the specified max length (for use in a TextTable Column).
- Text(int, CommandLine.Help.ColorScheme) - Constructor for class picocli.CommandLine.Help.Ansi.Text
-
Constructs a Text with the specified max length (for use in a TextTable Column).
- Text(String) - Constructor for class picocli.CommandLine.Help.Ansi.Text
-
Constructs a Text with the specified String, which may contain markup like
@|bg(red),white,underline some text|@. - Text(String, CommandLine.Help.ColorScheme) - Constructor for class picocli.CommandLine.Help.Ansi.Text
-
Constructs a Text with the specified String (which may contain markup), and ColorScheme.
- Text(CommandLine.Help.Ansi.Text) - Constructor for class picocli.CommandLine.Help.Ansi.Text
-
Copy constructor.
- textAt(int, int) - Method in class picocli.CommandLine.Help.TextTable
-
Returns the
Textslot at the specified row and column to write a text value into. - textTable() - Method in class picocli.CommandLine.Help.Layout
-
Returns the TextTable used in this layout.
- TextTable - Search tag in class picocli.CommandLine.Help
- Section
- TextTable(CommandLine.Help.Ansi, CommandLine.Help.Column[]) - Constructor for class picocli.CommandLine.Help.TextTable
-
Deprecated.
- TextTable(CommandLine.Help.ColorScheme, CommandLine.Help.Column[]) - Constructor for class picocli.CommandLine.Help.TextTable
- throwOrExit(CommandLine.ExecutionException) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.Convenience method for subclasses that throws the specified ExecutionException if no exit code was set, or otherwise, if an exit code was set, prints the stacktrace of the specified exception to the diagnostic error stream and calls
System.exitwith the configured exit code to terminate the currently running Java virtual machine. - toBuilder() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns a new Builder initialized with the attributes from this
OptionSpec. - toBuilder() - Method in class picocli.CommandLine.Model.PositionalParamSpec
-
Returns a new Builder initialized with the attributes from this
PositionalParamSpec. - toggleBooleanFlags() - Method in class picocli.CommandLine.Model.ParserSpec
- toggleBooleanFlags(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- toString - Variable in class picocli.CommandLine.Model.ArgSpec
- toString() - Method in class picocli.codegen.annotation.processing.AnnotatedElementHolder
-
Returns a string representation of this binding, for debugging purposes.
- toString() - Method in class picocli.CommandLine.Help.Ansi.Text
-
Returns a String representation of the text with ANSI escape codes embedded, unless ANSI is CommandLine.Help.Ansi.enabled() not enabled}, in which case the plain text is returned.
- toString() - Method in class picocli.CommandLine.Help.ColorScheme
- toString() - Method in class picocli.CommandLine.Help.Column
- toString() - Method in class picocli.CommandLine.Help.Layout
-
Returns the section of the usage help message accumulated in the TextTable owned by this layout.
- toString() - Method in class picocli.CommandLine.Help.TextTable
- toString() - Method in class picocli.CommandLine.Model.ArgGroupSpec
- toString() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
- toString() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
- toString() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns a string respresentation of this option or positional parameter.
- toString() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns a string representation of this command, used in error messages and trace messages.
- toString() - Method in class picocli.CommandLine.Model.MethodParam
- toString() - Method in class picocli.CommandLine.Model.ParserSpec
- toString() - Method in class picocli.CommandLine.ParseResult.GroupMatch
- toString() - Method in class picocli.CommandLine.ParseResult.GroupMatchContainer
- toString() - Method in class picocli.CommandLine.PropertiesDefaultProvider
- toString() - Method in class picocli.CommandLine.Range
- toString() - Method in class picocli.CommandLine.RegexTransformer
- toString() - Method in class picocli.CommandLine.Tracer
- toString(StringBuilder) - Method in class picocli.CommandLine.Help.TextTable
-
Copies the text representation that we built up from the options into the specified StringBuilder.
- tracer() - Static method in class picocli.CommandLine
-
Returns the
Tracerused internally for printing internal debug statements. - transform(CommandLine.Model.CommandSpec) - Method in interface picocli.CommandLine.IModelTransformer
-
Given an original CommandSpec, return the object that should be used instead.
- trimQuotes() - Method in class picocli.CommandLine.Model.ParserSpec
- trimQuotes(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- TRUNCATE - Enum constant in enum picocli.CommandLine.Help.Column.Overflow
- type() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the type to convert the option or positional parameter to before setting the value.
- type() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the type to convert the option or positional parameter to before setting the value.
- type() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the type to convert the option or positional parameter to before setting the value.
- type() - Element in annotation type picocli.CommandLine.Option
-
Optionally specify a
typeto control exactly what Class the option parameter should be converted to. - type() - Element in annotation type picocli.CommandLine.Parameters
-
Optionally specify a
typeto control exactly what Class the positional parameter should be converted to. - type(Class<?>) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the type to convert the option or positional parameter to before setting the value, and returns this builder.
- type(Class<?>) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the type to convert the option or positional parameter to before setting the value, and returns this builder.
- TypeConversionException(String) - Constructor for exception class picocli.CommandLine.TypeConversionException
-
Constructs a TypeConversionException.
- typedValues() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the typed command line arguments matched by this option or positional parameter spec.
- typeInfo - Variable in class picocli.CommandLine.Model.ArgSpec
- typeInfo() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns the type info for the annotated program element associated with this group.
- typeInfo() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns the type info for the annotated program element associated with this group.
- typeInfo() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the type info for this option or positional parameter.
- typeInfo() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the type info for this option or positional parameter.
- typeInfo() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the
ITypeInfothat can be used both at compile time (by annotation processors) and at runtime. - typeInfo(CommandLine.Model.ITypeInfo) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets the type info for the annotated program element associated with this group, and returns this builder.
- typeInfo(CommandLine.Model.ITypeInfo) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the type info for this option or positional parameter, and returns this builder.
- typeInfo(CommandLine.Model.ITypeInfo) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the type info for this option or positional parameter, and returns this builder.
U
- underline - Enum constant in enum picocli.CommandLine.Help.Ansi.Style
- unmatched() - Method in class picocli.CommandLine.ParseResult
-
Returns a list of command line arguments that did not match any options or positional parameters.
- unmatchedArgsBindings() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the list of
UnmatchedArgumentsBindingsconfigured for this command; eachUnmatchedArgsBindingcaptures the arguments that could not be matched to any options or positional parameters. - UnmatchedArgumentException(CommandLine, String) - Constructor for exception class picocli.CommandLine.UnmatchedArgumentException
- UnmatchedArgumentException(CommandLine, List<String>) - Constructor for exception class picocli.CommandLine.UnmatchedArgumentException
- UnmatchedArgumentException(CommandLine, List<String>, String) - Constructor for exception class picocli.CommandLine.UnmatchedArgumentException
- UnmatchedArgumentException(CommandLine, Stack<String>) - Constructor for exception class picocli.CommandLine.UnmatchedArgumentException
- unmatchedArgumentsAllowed() - Method in class picocli.CommandLine.Model.ParserSpec
- unmatchedArgumentsAllowed(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- unmatchedOptionsAllowedAsOptionParameters() - Method in class picocli.CommandLine.Model.ParserSpec
- unmatchedOptionsAllowedAsOptionParameters(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- unmatchedOptionsArePositionalParams() - Method in class picocli.CommandLine.Model.ParserSpec
- unmatchedOptionsArePositionalParams(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- unspecified(boolean) - Method in class picocli.CommandLine.Range
-
Returns a new Range object with the
isUnspecifiedvalue replaced by the specified value. - updateArgGroupAttributes(CommandLine.ArgGroup) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Updates this builder from the specified annotation values.
- updateCommandAttributes(CommandLine.Command, CommandLine.IFactory) - Method in class picocli.CommandLine.Model.CommandSpec
-
Updates the following attributes from the specified
@Commandannotation: aliases,parser separator, command name, version, help command, version provider, default provider andusage message spec. - usage(PrintStream) - Method in class picocli.CommandLine
-
Delegates to
CommandLine.usage(PrintStream, Help.ColorScheme)with the configured color scheme. - usage(PrintStream, CommandLine.Help.Ansi) - Method in class picocli.CommandLine
-
Delegates to
CommandLine.usage(PrintStream, Help.ColorScheme)with the default color scheme. - usage(PrintStream, CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine
-
Prints a usage help message for the annotated command class to the specified
PrintStream. - usage(PrintWriter) - Method in class picocli.CommandLine
-
Delegates to
CommandLine.usage(PrintWriter, Help.ColorScheme)with the configured color scheme. - usage(PrintWriter, CommandLine.Help.Ansi) - Method in class picocli.CommandLine
-
Similar to
CommandLine.usage(PrintStream, Help.Ansi)but with the specifiedPrintWriterinstead of aPrintStream. - usage(PrintWriter, CommandLine.Help.ColorScheme) - Method in class picocli.CommandLine
-
Similar to
CommandLine.usage(PrintStream, Help.ColorScheme), but with the specifiedPrintWriterinstead of aPrintStream. - usage(Object, PrintStream) - Static method in class picocli.CommandLine
-
Equivalent to
new CommandLine(command).usage(out). - usage(Object, PrintStream, CommandLine.Help.Ansi) - Static method in class picocli.CommandLine
-
Equivalent to
new CommandLine(command).usage(out, ansi). - usage(Object, PrintStream, CommandLine.Help.ColorScheme) - Static method in class picocli.CommandLine
-
Equivalent to
new CommandLine(command).usage(out, colorScheme). - USAGE - Static variable in class picocli.CommandLine.ExitCode
-
Return value from the
executemethod signifying command line usage error: user input for the command was incorrect, e.g., the wrong number of arguments, a bad flag, a bad syntax in a parameter, or whatever. - usageHelp() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option allows the user to request usage help.
- usageHelp() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns whether this option allows the user to request usage help.
- usageHelp() - Element in annotation type picocli.CommandLine.Option
-
Set
usageHelp=truefor the--helpoption that triggers display of the usage help message. - usageHelp(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option allows the user to request usage help, and returns this builder.
- usageHelpAutoWidth() - Element in annotation type picocli.CommandLine.Command
-
If
true, picocli will attempt to detect the terminal width and adjust the usage help message accordingly. - usageHelpWidth() - Element in annotation type picocli.CommandLine.Command
-
Set the
usage help message width. - usageMessage() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the usage help message specification for this command.
- usageMessage(CommandLine.Model.UsageMessageSpec) - Method in class picocli.CommandLine.Model.CommandSpec
-
Initializes the usageMessage specification for this command from the specified settings and returns this commandSpec.
- UsageMessageSpec() - Constructor for class picocli.CommandLine.Model.UsageMessageSpec
- useAnsi(CommandLine.Help.Ansi) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.
- UseDefaultConverter() - Constructor for class picocli.CommandLine.UseDefaultConverter
- useErr(PrintStream) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.use
CommandLine.setErr(PrintWriter)andCommandLine.execute(String...)instead - useOut(PrintStream) - Method in class picocli.CommandLine.AbstractHandler
-
Deprecated.use
CommandLine.setOut(PrintWriter)andCommandLine.execute(String...)instead - userObject() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns the user object associated with this option or positional parameters.
- userObject() - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Returns the user object associated with this option or positional parameters.
- userObject() - Method in class picocli.CommandLine.Model.ArgSpec
-
Returns the user object associated with this option or positional parameters.
- userObject() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the user object associated with this command.
- userObject() - Method in interface picocli.CommandLine.Model.IAnnotatedElement
- userObject(Object) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the user object associated with this option or positional parameters, and returns this builder.
- userObject(Object) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the user object associated with this option or positional parameters, and returns this builder.
- useSimplifiedAtFiles() - Method in class picocli.CommandLine.Model.ParserSpec
- useSimplifiedAtFiles(boolean) - Method in class picocli.CommandLine.Model.ParserSpec
- Util - Class in picocli.codegen.util
V
- validate() - Element in annotation type picocli.CommandLine.ArgGroup
-
Determines whether picocli should validate the rules of this group (
trueby default). - validate() - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Returns whether picocli should validate the rules of this group: for a mutually exclusive group this means that no more than one arguments in the group is specified on the command line; for a co-ocurring group this means that all arguments in the group are specified on the command line.
- validate() - Method in class picocli.CommandLine.Model.ArgGroupSpec
-
Returns whether picocli should validate the rules of this group: for a mutually exclusive group this means that no more than one arguments in the group is specified on the command line; for a co-ocurring group this means that all arguments in the group are specified on the command line.
- validate(boolean) - Method in class picocli.CommandLine.Model.ArgGroupSpec.Builder
-
Sets whether picocli should validate the rules of this group: for a mutually exclusive group this means that no more than one arguments in the group is specified on the command line; for a co-ocurring group this means that all arguments in the group are specified on the command line.
- Valid Ranges - Search tag in class picocli.CommandLine.ExitCode
- Section
- value() - Element in annotation type picocli.CommandLine.Spec
-
Whether to inject the
CommandSpecof this command (the default) or theCommandSpecof the "mixee" command that receives the options and other command elements defined here. - valueIsDefaultValue - Variable in class picocli.CommandLine.Model.ArgSpec
- valueOf(boolean) - Static method in enum picocli.CommandLine.Help.Ansi
-
Returns Ansi.ON if the specified
enabledflag is true, Ansi.OFF otherwise. - valueOf(String) - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum picocli.CommandLine.Help.Ansi
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum picocli.CommandLine.Help.Column.Overflow
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum picocli.CommandLine.Help.Visibility
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in class picocli.CommandLine.Range
-
Leniently parses the specified String as a
Rangevalue and return the result. - valueOf(String) - Static method in enum picocli.CommandLine.ScopeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum picocli.CommandLine.Spec.Target
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum picocli.CommandLine.TraceLevel
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum picocli.CommandLine.Help.Ansi.Style
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.Help.Ansi
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.Help.Column.Overflow
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.Help.Visibility
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.ScopeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.Spec.Target
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum picocli.CommandLine.TraceLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
- version() - Element in annotation type picocli.CommandLine.Command
-
Version information for this command, to print to the console when the user specifies an option to request version help.
- version() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns version information for this command, to print to the console when the user specifies an option to request version help.
- version(String...) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets version information literals for this command, to print to the console when the user specifies an option to request version help.
- VERSION - Static variable in class picocli.CommandLine
-
This is picocli version "4.7.5".
- versionHelp() - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Returns whether this option allows the user to request version information.
- versionHelp() - Method in class picocli.CommandLine.Model.OptionSpec
-
Returns whether this option allows the user to request version information.
- versionHelp() - Element in annotation type picocli.CommandLine.Option
-
Set
versionHelp=truefor the--versionoption that triggers display of the version information. - versionHelp(boolean) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets whether this option allows the user to request version information, and returns this builder.
- versionProvider() - Element in annotation type picocli.CommandLine.Command
-
Class that can provide version information dynamically at runtime.
- versionProvider() - Method in class picocli.CommandLine.Model.CommandSpec
-
Returns the version provider for this command, to generate the
CommandLine.Model.CommandSpec.version()strings. - versionProvider(CommandLine.IVersionProvider) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets version provider for this command, to generate the
CommandLine.Model.CommandSpec.version()strings.
W
- warn(String, Object...) - Method in class picocli.CommandLine.Tracer
-
Prints the specified message if the current trace level is WARN or higher.
- warn(Element, String, Object...) - Method in class picocli.codegen.annotation.processing.AbstractCommandSpecProcessor
-
Prints a compile-time warning message for the specified element.
- WARN - Enum constant in enum picocli.CommandLine.TraceLevel
- width - Variable in class picocli.CommandLine.Help.Column
-
Column width in characters
- width() - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Returns the maximum usage help message width.
- width(int) - Method in class picocli.CommandLine.Model.UsageMessageSpec
-
Sets the maximum usage help message width to the specified value.
- withToString(String) - Method in class picocli.CommandLine.Model.OptionSpec.Builder
-
Sets the string representation of this option or positional parameter to the specified value, and returns this builder.
- withToString(String) - Method in class picocli.CommandLine.Model.PositionalParamSpec.Builder
-
Sets the string representation of this option or positional parameter to the specified value, and returns this builder.
- withToString(String) - Method in class picocli.CommandLine.Model.CommandSpec
-
Sets the string representation of this command, used in error messages and trace messages.
- WRAP - Enum constant in enum picocli.CommandLine.Help.Column.Overflow
- wrapWithoutInspection(Object) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecwith the specified associated user object. - wrapWithoutInspection(Object, CommandLine.IFactory) - Static method in class picocli.CommandLine.Model.CommandSpec
-
Creates and returns a new
CommandSpecwith the specified associated user object. - writeSingleManPage(PrintWriter, CommandLine.Model.CommandSpec) - Static method in class picocli.codegen.docgen.manpage.ManPageGenerator
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
CommandLine.Help.addAllSubcommands(Map)instead