Uses of Class
picocli.CommandLine.Model.ArgSpec
-
Packages that use CommandLine.Model.ArgSpec Package Description picocli Provides classes and interfaces for the main picocli command line parsing andautocompletion
functionality.picocli.codegen.annotation.processing picocli.codegen.aot.graalvm -
-
Uses of CommandLine.Model.ArgSpec in picocli
Subclasses of CommandLine.Model.ArgSpec in picocli Modifier and Type Class Description static class
CommandLine.Model.OptionSpec
TheOptionSpec
class models aspects of a named option of a command, including whether it is required or optional, the option parameters supported (or required) by the option, and attributes for the usage help message describing the option.static class
CommandLine.Model.PositionalParamSpec
ThePositionalParamSpec
class models aspects of a positional parameter of a command, including whether it is required or optional, and attributes for the usage help message describing the positional parameter.Fields in picocli declared as CommandLine.Model.ArgSpec Modifier and Type Field Description private CommandLine.Model.ArgSpec
CommandLine.ParameterException. argSpec
private CommandLine.Model.ArgSpec
CommandLine.OverwrittenOptionException. overwrittenArg
private CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec.Builder. root
private CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec. root
Fields in picocli with type parameters of type CommandLine.Model.ArgSpec Modifier and Type Field Description private java.util.Set<CommandLine.Model.ArgSpec>
CommandLine.Model.ArgGroupSpec. args
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.ArgGroupSpec.Builder. args
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.CommandSpec. args
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.ParseResult. matchedArgs
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.ParseResult.Builder. matchedArgsList
(package private) java.util.Map<CommandLine.Model.ArgSpec,java.util.List<java.lang.Object>>
CommandLine.ParseResult.GroupMatch. matchedValues
(package private) java.util.Map<CommandLine.Model.ArgSpec,java.util.Map<java.lang.Integer,java.util.List<java.lang.Object>>>
CommandLine.ParseResult.GroupMatch. matchedValuesAtPosition
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.MissingParameterException. missing
(package private) java.util.Map<CommandLine.Model.ArgSpec,java.util.List<java.lang.String>>
CommandLine.ParseResult.GroupMatch. originalStringValues
private java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.CommandSpec. requiredArgs
Methods in picocli that return CommandLine.Model.ArgSpec Modifier and Type Method Description abstract CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec.Builder. build()
private static CommandLine.Model.ArgSpec
CommandLine.Model.CommandReflection. buildArgForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)
CommandLine.Model.ArgSpec
CommandLine.ParameterException. getArgSpec()
Returns theArgSpec
object for the (sub)command whose input could not be parsed.CommandLine.Model.ArgSpec
CommandLine.OverwrittenOptionException. getOverwritten()
Returns theCommandLine.Model.ArgSpec
for the option which was being overwritten.CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec. messages(CommandLine.Model.Messages msgs)
Sets the Messages for this ArgSpec, and returns this ArgSpec.CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec.Builder. root()
Returns the root option or positional parameter (on the parent command), if this option or positional parameter was inherited; ornull
if it was not.CommandLine.Model.ArgSpec
CommandLine.Model.ArgSpec. root()
Returns the root option or positional parameter (on the parent command), if this option or positional parameter was inherited; ornull
if it was not.Methods in picocli that return types with arguments of type CommandLine.Model.ArgSpec Modifier and Type Method Description java.util.Set<CommandLine.Model.ArgSpec>
CommandLine.Model.ArgGroupSpec. args()
Returns the options and positional parameters in this group; may be empty but notnull
.java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.ArgGroupSpec.Builder. args()
Returns the list of options and positional parameters that depend on this group.java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.CommandSpec. args()
Returns the list of all options and positional parameters configured for this command.java.util.List<CommandLine.Model.ArgSpec>
CommandLine.MissingParameterException. getMissing()
java.util.List<CommandLine.Model.ArgSpec>
CommandLine.ParseResult. matchedArgs()
Returns a list of matched options and positional parameters, in order they were matched on the command line.java.util.Set<CommandLine.Model.ArgSpec>
CommandLine.Model.ArgGroupSpec. requiredArgs()
Returns the required options and positional parameters in this group; may be empty but notnull
.java.util.List<CommandLine.Model.ArgSpec>
CommandLine.Model.CommandSpec. requiredArgs()
Returns the list of required options and positional parameters configured for this command.Methods in picocli with parameters of type CommandLine.Model.ArgSpec Modifier and Type Method Description CommandLine.Model.CommandSpec
CommandLine.Model.CommandSpec. add(CommandLine.Model.ArgSpec arg)
Adds the specified option spec or positional parameter spec to the list of configured arguments to expect.CommandLine.ParseResult.Builder
CommandLine.ParseResult.Builder. add(CommandLine.Model.ArgSpec arg, int position)
Adds the specifiedOptionSpec
orPositionalParamSpec
to the list of options and parameters that were matched on the command line.CommandLine.Model.ArgGroupSpec.Builder
CommandLine.Model.ArgGroupSpec.Builder. addArg(CommandLine.Model.ArgSpec arg)
Adds the specified argument to the list of options and positional parameters that depend on this group.private CommandLine.Model.CommandSpec
CommandLine.Model.CommandSpec. addArg(CommandLine.Model.ArgSpec arg)
(package private) void
CommandLine.ParseResult.GroupMatch. addMatchedValue(CommandLine.Model.ArgSpec argSpec, int matchPosition, java.lang.Object stronglyTypedValue, CommandLine.Tracer tracer)
(package private) void
CommandLine.ParseResult.Builder. addOriginalStringValue(CommandLine.Model.ArgSpec argSpec, java.lang.String value)
(package private) void
CommandLine.ParseResult.GroupMatch. addOriginalStringValue(CommandLine.Model.ArgSpec argSpec, java.lang.String value)
(package private) void
CommandLine.ParseResult.Builder. addStringValue(CommandLine.Model.ArgSpec argSpec, java.lang.String value)
private void
CommandLine.Interpreter. addToInitialized(CommandLine.Model.ArgSpec argSpec, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private static void
CommandLine.Help. addTrailingDefaultLine(java.util.List<CommandLine.Help.Ansi.Text[]> result, CommandLine.Model.ArgSpec arg, CommandLine.Help.ColorScheme scheme)
(package private) void
CommandLine.ParseResult.Builder. addTypedValues(CommandLine.Model.ArgSpec argSpec, int position, java.lang.Object typedValue)
private int
CommandLine.Interpreter. addUserInputToList(CommandLine.Model.ArgSpec argSpec, java.util.List<java.lang.Object> result, int consumed, java.lang.String argDescription)
private boolean
CommandLine.Interpreter. applyDefault(CommandLine.IDefaultValueProvider defaultValueProvider, CommandLine.Model.ArgSpec arg)
private int
CommandLine.Interpreter. applyOption(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToArrayField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToCollectionField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToMapField(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValueToSingleValuedField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range derivedArity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private boolean
CommandLine.Interpreter. assertNoMissingMandatoryParameter(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
private boolean
CommandLine.Interpreter. assertNoMissingParameters(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, java.util.Stack<java.lang.String> args)
(package private) void
CommandLine.ParseResult.Builder. beforeMatchingGroupElement(CommandLine.Model.ArgSpec argSpec)
private boolean
CommandLine.Interpreter. booleanValue(CommandLine.Model.ArgSpec argSpec, java.lang.Object value)
private boolean
CommandLine.Interpreter. canConsumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.String argDescription)
private boolean
CommandLine.Interpreter. canConsumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.lang.String argDescription)
private void
CommandLine.Interpreter. clear(CommandLine.Model.ArgSpec argSpec)
int
CommandLine.PositionalParametersSorter. compare(CommandLine.Model.ArgSpec p1, CommandLine.Model.ArgSpec p2)
private java.util.List<java.lang.Object>
CommandLine.Interpreter. consumeArguments(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, boolean unquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.lang.String argDescription)
private int
CommandLine.Interpreter. consumedCount(int i, int initialSize, CommandLine.Model.ArgSpec arg)
private int
CommandLine.Interpreter. consumedCountMap(int i, int initialSize, CommandLine.Model.ArgSpec arg)
private void
CommandLine.Interpreter. consumeMapArguments(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Map<java.lang.Object,java.lang.Object> result, java.lang.String argDescription)
private int
CommandLine.Interpreter. consumeOneArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.util.List<java.lang.Object> result, int index, java.lang.String argDescription)
private void
CommandLine.Interpreter. consumeOneMapArgument(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg, java.lang.Class<?>[] classes, CommandLine.ITypeConverter<?> keyConverter, CommandLine.ITypeConverter<?> valueConverter, java.util.Map<java.lang.Object,java.lang.Object> result, int index, java.lang.String argDescription)
void
CommandLine.IParameterConsumer. consumeParameters(java.util.Stack<java.lang.String> args, CommandLine.Model.ArgSpec argSpec, CommandLine.Model.CommandSpec commandSpec)
Consumes as many of the specified command line arguments as needed by popping them off the specified Stack.void
CommandLine.NullParameterConsumer. consumeParameters(java.util.Stack<java.lang.String> args, CommandLine.Model.ArgSpec argSpec, CommandLine.Model.CommandSpec commandSpec)
private static CommandLine.DuplicateOptionAnnotationsException
CommandLine.DuplicateOptionAnnotationsException. create(java.lang.String name, CommandLine.Model.ArgSpec argSpec1, CommandLine.Model.ArgSpec argSpec2)
private static CommandLine.Help.Ansi.Text[]
CommandLine.Help. createDescriptionFirstLines(CommandLine.Help.ColorScheme scheme, CommandLine.Model.ArgSpec arg, java.lang.String[] description, boolean[] showDefault)
private static java.lang.String
CommandLine. createMissingParameterMessage(CommandLine.Model.ArgSpec argSpec, CommandLine.Range arity, java.util.List<CommandLine.Model.PositionalParamSpec> missingList, java.util.Stack<java.lang.String> args, int available)
private java.lang.String
CommandLine.Interpreter. createMissingParameterMessageFoundOtherOption(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
private java.lang.String
CommandLine.Interpreter. createUserInputDebugString(CommandLine.Model.ArgSpec argSpec, char[] result, java.lang.String name)
java.lang.String
CommandLine.IDefaultValueProvider. defaultValue(CommandLine.Model.ArgSpec argSpec)
Returns the default value for an option or positional parameter ornull
.java.lang.String
CommandLine.NoDefaultProvider. defaultValue(CommandLine.Model.ArgSpec argSpec)
java.lang.String
CommandLine.PropertiesDefaultProvider. defaultValue(CommandLine.Model.ArgSpec argSpec)
private static java.lang.String
CommandLine.Model.ArgSpec. describe(CommandLine.Model.ArgSpec argSpec, java.lang.String separator)
Returns a description of the option or positional arg, e.g.private static java.lang.String
CommandLine.Model.ArgSpec. describe(CommandLine.Model.ArgSpec argSpec, java.lang.String separator, java.lang.String value)
Returns a description of the option or positional argprotected boolean
CommandLine.Model.ArgSpec. equalsImpl(CommandLine.Model.ArgSpec other)
private static CommandLine.Model.CommandSpec
AutoComplete. findCommandFor(CommandLine.Model.ArgSpec arg, CommandLine.Model.CommandSpec cmd)
private CommandLine.ParseResult.GroupMatchContainer
CommandLine.ParseResult.GroupMatchContainer. findOrCreateMatchingGroup(CommandLine.Model.ArgSpec argSpec, CommandLine commandLine)
private CommandLine.ITypeConverter<?>
CommandLine.Interpreter. getActualTypeConverter(java.lang.Class<?> type, CommandLine.Model.ArgSpec argSpec)
private java.lang.String
CommandLine.Interpreter. getMaskedValue(CommandLine.Model.ArgSpec argSpec, java.lang.String input)
(package private) int
CommandLine.Interpreter. getPosition(CommandLine.Model.ArgSpec arg)
private CommandLine.ITypeConverter<?>
CommandLine.Interpreter. getTypeConverter(java.lang.Class<?>[] types, CommandLine.Model.ArgSpec argSpec, int index)
(package private) boolean
CommandLine.ParseResult.GroupMatch. hasMatchedValueAtPosition(CommandLine.Model.ArgSpec arg, int position)
private CommandLine.Range
CommandLine.PositionalParametersSorter. index(CommandLine.Model.ArgSpec arg)
private boolean
CommandLine.Interpreter. is(CommandLine.Model.ArgSpec p, java.lang.String attribute, boolean value)
private boolean
CommandLine.Interpreter. isArgResemblesOptionThereforeDiscontinue(CommandLine.Model.ArgSpec argSpec, java.util.Stack<java.lang.String> args, int i, CommandLine.Range arity)
void
CommandLine.Help.Layout. layout(CommandLine.Model.ArgSpec argSpec, CommandLine.Help.Ansi.Text[][] cellValues)
Copies the specified text values into the correct cells in theCommandLine.Help.TextTable
.(package private) int
CommandLine.ParseResult.GroupMatch. matchCount(CommandLine.Model.ArgSpec argSpec)
java.util.List<java.lang.Object>
CommandLine.ParseResult.GroupMatch. matchedValues(CommandLine.Model.ArgSpec argSpec)
Returns the values matched for the specified argument, converted to the type of the argument.private void
CommandLine.ParseResult.Builder. nowProcessing(CommandLine.Model.ArgSpec spec, java.lang.Object value)
private static java.lang.String
CommandLine. optionDescription(java.lang.String prefix, CommandLine.Model.ArgSpec argSpec, int optionParamIndex)
(package private) java.lang.String
CommandLine.Interpreter. positionDesc(CommandLine.Model.ArgSpec arg)
boolean
CommandLine.IParameterPreprocessor. preprocess(java.util.Stack<java.lang.String> args, CommandLine.Model.CommandSpec commandSpec, CommandLine.Model.ArgSpec argSpec, java.util.Map<java.lang.String,java.lang.Object> info)
Called when either the command, option or positional parameter that has this preprocessor configured was recognized by the picocli parser.boolean
CommandLine.NoOpParameterPreprocessor. preprocess(java.util.Stack<java.lang.String> args, CommandLine.Model.CommandSpec commandSpec, CommandLine.Model.ArgSpec argSpec, java.util.Map<java.lang.String,java.lang.Object> info)
(package private) char[]
CommandLine.Interpreter. readUserInput(CommandLine.Model.ArgSpec argSpec)
CommandLine.Model.CommandSpec
CommandLine.Model.CommandSpec. remove(CommandLine.Model.ArgSpec arg)
(INCUBATING) Removes the specified option spec or positional parameter spec from the list of configured arguments to expect.private static <T> int
CommandLine.Model.CommandSpec. remove(CommandLine.Model.ArgSpec arg, java.util.Map<T,CommandLine.Model.OptionSpec> map)
CommandLine.Help.Ansi.Text
CommandLine.Help.DefaultParamLabelRenderer. renderParameterLabel(CommandLine.Model.ArgSpec argSpec, CommandLine.Help.Ansi ansi, java.util.List<CommandLine.Help.Ansi.IStyle> styles)
CommandLine.Help.Ansi.Text
CommandLine.Help.IParamLabelRenderer. renderParameterLabel(CommandLine.Model.ArgSpec argSpec, CommandLine.Help.Ansi ansi, java.util.List<CommandLine.Help.Ansi.IStyle> styles)
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.T
CommandLine.Model.ArgSpec.Builder. root(CommandLine.Model.ArgSpec root)
Sets the root object for this inherited option, and returns this builder.private java.lang.String[]
CommandLine.Interpreter. splitKeyValue(CommandLine.Model.ArgSpec argSpec, java.lang.String value)
private static java.lang.String[]
CommandLine.Model.ArgSpec. splitRespectingQuotedStrings(java.lang.String value, int limit, CommandLine.Model.ParserSpec parser, CommandLine.Model.ArgSpec argSpec, java.lang.String splitRegex)
boolean
AutoComplete.BooleanArgFilter. test(CommandLine.Model.ArgSpec f)
private java.lang.Object
CommandLine.Interpreter. tryConvert(CommandLine.Model.ArgSpec argSpec, int index, CommandLine.ITypeConverter<?> converter, java.lang.String value, int typeIndex)
private java.lang.String[]
CommandLine.Interpreter. unquoteAndSplit(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, int consumed, java.lang.String arg)
private void
CommandLine.Interpreter. updateHelpRequested(CommandLine.Model.ArgSpec argSpec)
private boolean
CommandLine.Interpreter. varargCanConsumeNextValue(CommandLine.Model.ArgSpec argSpec, java.lang.String nextValue)
Returns whether the next argument can be assigned to a vararg option/positional parameter.Method parameters in picocli with type arguments of type CommandLine.Model.ArgSpec Modifier and Type Method Description private void
CommandLine.Interpreter. addPostponedRequiredArgs(java.util.Collection<CommandLine.Model.ArgSpec> inheritedRequired, java.util.List<CommandLine.Model.ArgSpec> required)
private void
CommandLine.Interpreter. addPostponedRequiredArgs(java.util.Collection<CommandLine.Model.ArgSpec> inheritedRequired, java.util.List<CommandLine.Model.ArgSpec> required)
private void
CommandLine.Interpreter. addToInitialized(CommandLine.Model.ArgSpec argSpec, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. applyDefaultValues(java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. applyDefaultValues(java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. applyGroupDefaults(CommandLine.IDefaultValueProvider defaultValueProvider, CommandLine.Model.ArgGroupSpec group, java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. applyGroupDefaults(CommandLine.IDefaultValueProvider defaultValueProvider, CommandLine.Model.ArgGroupSpec group, java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private int
CommandLine.Interpreter. applyOption(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToArrayField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToCollectionField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValuesToMapField(CommandLine.Model.ArgSpec argSpec, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range arity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private int
CommandLine.Interpreter. applyValueToSingleValuedField(CommandLine.Model.ArgSpec argSpec, boolean negated, CommandLine.LookBehind lookBehind, boolean alreadyUnquoted, CommandLine.Range derivedArity, java.util.Stack<java.lang.String> args, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String argDescription)
private static CommandLine.MissingParameterException
CommandLine.MissingParameterException. create(CommandLine cmd, java.util.Collection<CommandLine.Model.ArgSpec> missing, java.lang.String separator)
protected CommandLine.Help.Ansi.Text
CommandLine.Help. createDetailedSynopsisGroupsText(java.util.Set<CommandLine.Model.ArgSpec> outparam_groupArgs)
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.protected CommandLine.Help.Ansi.Text
CommandLine.Help. createDetailedSynopsisOptionsText(java.util.Collection<CommandLine.Model.ArgSpec> done, java.util.Comparator<CommandLine.Model.OptionSpec> optionSort, boolean clusterBooleanOptions)
Returns a Text object containing a partial detailed synopsis showing only the options, starting with a" "
space.protected CommandLine.Help.Ansi.Text
CommandLine.Help. createDetailedSynopsisOptionsText(java.util.Collection<CommandLine.Model.ArgSpec> done, java.util.List<CommandLine.Model.OptionSpec> optionList, java.util.Comparator<CommandLine.Model.OptionSpec> optionSort, boolean clusterBooleanOptions)
Returns a Text object containing a partial detailed synopsis showing only the specified options, starting with a" "
space.protected CommandLine.Help.Ansi.Text
CommandLine.Help. createDetailedSynopsisPositionalsText(java.util.Collection<CommandLine.Model.ArgSpec> done)
Returns a Text object containing a partial detailed synopsis showing only the positional parameters, starting with a" "
space.private static java.lang.String
CommandLine.Model.ArgSpec. describe(java.util.Collection<CommandLine.Model.ArgSpec> args)
private static java.lang.String
CommandLine.Model.ArgSpec. describe(java.util.Collection<CommandLine.Model.ArgSpec> args, java.lang.String separator, java.lang.String optionParamSeparator, java.lang.String openingQuote, java.lang.String closingQuote)
private static java.lang.String
CommandLine.Model.ArgSpec. describeTypes(java.util.Collection<CommandLine.Model.ArgSpec> args)
private void
CommandLine.Interpreter. parse(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> argumentStack, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing, java.util.Collection<CommandLine.Model.ArgSpec> inheritedRequired)
private void
CommandLine.Interpreter. parse(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> argumentStack, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing, java.util.Collection<CommandLine.Model.ArgSpec> inheritedRequired, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. parse(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> argumentStack, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing, java.util.Collection<CommandLine.Model.ArgSpec> inheritedRequired, java.util.Set<CommandLine.Model.ArgSpec> initialized)
private void
CommandLine.Interpreter. processArguments(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> args, java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing)
private void
CommandLine.Interpreter. processArguments(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> args, java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing)
private void
CommandLine.Interpreter. processClusteredShortOptions(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String arg, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processClusteredShortOptions(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String arg, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processPositionalParameter(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processPositionalParameter(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processRemainderAsPositionalParameters(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processRemainderAsPositionalParameters(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.util.Stack<java.lang.String> args)
private void
CommandLine.Interpreter. processStandaloneOption(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String arg, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args, CommandLine.LookBehind lookBehind)
private void
CommandLine.Interpreter. processStandaloneOption(java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String arg, boolean alreadyUnquoted, java.util.Stack<java.lang.String> args, CommandLine.LookBehind lookBehind)
private void
CommandLine.Interpreter. processSubcommand(CommandLine subcommand, CommandLine.ParseResult.Builder builder, java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> args, java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing, java.lang.String separator, java.lang.String arg)
private void
CommandLine.Interpreter. processSubcommand(CommandLine subcommand, CommandLine.ParseResult.Builder builder, java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> args, java.util.Collection<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> initialized, java.lang.String[] originalArgs, java.util.List<java.lang.Object> nowProcessing, java.lang.String separator, java.lang.String arg)
private CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec. rawSynopsisUnitText(CommandLine.Help.ColorScheme colorScheme, java.util.Set<CommandLine.Model.ArgSpec> outparam_groupArgs)
CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec. synopsisText(CommandLine.Help.ColorScheme colorScheme, java.util.Set<CommandLine.Model.ArgSpec> outparam_groupArgs)
Returns the synopsis of this group.(package private) CommandLine.ParseResult.GroupValidationResult
CommandLine.Model.ArgGroupSpec. validateArgs(CommandLine commandLine, java.util.Collection<CommandLine.Model.ArgSpec> matchedArgs)
private void
CommandLine.Interpreter. validateConstraints(java.util.Stack<java.lang.String> argumentStack, java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> matched)
private void
CommandLine.Interpreter. validateConstraints(java.util.Stack<java.lang.String> argumentStack, java.util.List<CommandLine.Model.ArgSpec> required, java.util.Set<CommandLine.Model.ArgSpec> matched)
Constructors in picocli with parameters of type CommandLine.Model.ArgSpec Constructor Description Builder(CommandLine.Model.ArgSpec original)
MissingParameterException(CommandLine commandLine, CommandLine.Model.ArgSpec missing, java.lang.String msg)
OverwrittenOptionException(CommandLine commandLine, CommandLine.Model.ArgSpec overwritten, java.lang.String msg)
ParameterException(CommandLine commandLine, java.lang.String msg, java.lang.Throwable t, CommandLine.Model.ArgSpec argSpec, java.lang.String value)
Constructs a new ParameterException with the specified CommandLine and error message.ParameterException(CommandLine commandLine, java.lang.String msg, CommandLine.Model.ArgSpec argSpec, java.lang.String value)
Constructs a new ParameterException with the specified CommandLine and error message.Constructor parameters in picocli with type arguments of type CommandLine.Model.ArgSpec Constructor Description MissingParameterException(CommandLine commandLine, java.util.Collection<CommandLine.Model.ArgSpec> missing, java.lang.String msg)
-
Uses of CommandLine.Model.ArgSpec in picocli.codegen.annotation.processing
Methods in picocli.codegen.annotation.processing with parameters of type CommandLine.Model.ArgSpec Modifier and Type Method Description void
ParameterConsumerMetaData. consumeParameters(java.util.Stack<java.lang.String> args, CommandLine.Model.ArgSpec argSpec, CommandLine.Model.CommandSpec commandSpec)
Does nothing.java.lang.String
DefaultValueProviderMetaData. defaultValue(CommandLine.Model.ArgSpec argSpec)
Always returnsnull
. -
Uses of CommandLine.Model.ArgSpec in picocli.codegen.aot.graalvm
Methods in picocli.codegen.aot.graalvm with parameters of type CommandLine.Model.ArgSpec Modifier and Type Method Description private void
ReflectionConfigGenerator.Visitor. visitArgSpec(CommandLine.Model.ArgSpec argSpec)
-