Uses of Class
picocli.CommandLine.Model.ArgSpec
-
Packages that use CommandLine.Model.ArgSpec Package Description picocli -
-
Uses of CommandLine.Model.ArgSpec in picocli
Subclasses of CommandLine.Model.ArgSpec in picocli Modifier and Type Class Description static classCommandLine.Model.OptionSpecTheOptionSpecclass 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 classCommandLine.Model.PositionalParamSpecThePositionalParamSpecclass 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.Methods in picocli that return CommandLine.Model.ArgSpec Modifier and Type Method Description CommandLine.Model.ArgSpecCommandLine.ParameterException. getArgSpec()Returns theArgSpecobject for the (sub)command whose input could not be parsed.CommandLine.Model.ArgSpecCommandLine.OverwrittenOptionException. getOverwritten()Returns theCommandLine.Model.ArgSpecfor the option which was being overwritten.CommandLine.Model.ArgSpecCommandLine.Model.ArgSpec. messages(CommandLine.Model.Messages msgs)Sets the Messages for this ArgSpec, and returns this ArgSpec.Methods in picocli that return types with arguments of type CommandLine.Model.ArgSpec Modifier and Type Method Description List<CommandLine.Model.ArgSpec>CommandLine.Model.CommandSpec. args()Returns the list of all options and positional parameters configured for this command.List<CommandLine.Model.ArgSpec>CommandLine.MissingParameterException. getMissing()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.CommandSpecCommandLine.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.BuilderCommandLine.ParseResult.Builder. add(CommandLine.Model.ArgSpec arg, int position)Adds the specifiedOptionSpecorPositionalParamSpecto the list of options and parameters that were matched on the command line.StringCommandLine.IDefaultValueProvider. defaultValue(CommandLine.Model.ArgSpec argSpec)Returns the default value for an option or positional parameter ornull.protected booleanCommandLine.Model.ArgSpec. equalsImpl(CommandLine.Model.ArgSpec other)voidCommandLine.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.CommandLine.Help.Ansi.TextCommandLine.Help.IParamLabelRenderer. renderParameterLabel(CommandLine.Model.ArgSpec argSpec, CommandLine.Help.Ansi ansi, 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.Constructors in picocli with parameters of type CommandLine.Model.ArgSpec Constructor Description MissingParameterException(CommandLine commandLine, CommandLine.Model.ArgSpec missing, String msg)OverwrittenOptionException(CommandLine commandLine, CommandLine.Model.ArgSpec overwritten, String msg)ParameterException(CommandLine commandLine, String msg, Throwable t, CommandLine.Model.ArgSpec argSpec, String value)Constructs a new ParameterException with the specified CommandLine and error message.ParameterException(CommandLine commandLine, String msg, CommandLine.Model.ArgSpec argSpec, 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, Collection<CommandLine.Model.ArgSpec> missing, String msg)
-