Uses of Class
picocli.CommandLine.Model.ArgGroupSpec.Builder
Packages that use CommandLine.Model.ArgGroupSpec.Builder
Package
Description
Provides classes and interfaces for the main picocli command line parsing and
autocompletion
functionality.-
Uses of CommandLine.Model.ArgGroupSpec.Builder in picocli
Methods in picocli that return CommandLine.Model.ArgGroupSpec.BuilderModifier and TypeMethodDescriptionCommandLine.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.CommandLine.Model.ArgGroupSpec.Builder.addSpecElement
(CommandLine.Model.IAnnotatedElement element) Adds the specified{@literal @}Spec
annotated program element to the list of spec elements for this group.CommandLine.Model.ArgGroupSpec.Builder.addSubgroup
(CommandLine.Model.ArgGroupSpec group) Adds the specified group to the list of subgroups that this group is composed of.CommandLine.Model.ArgGroupSpec.builder()
Returns a newCommandLine.Model.ArgGroupSpec.Builder
.CommandLine.Model.ArgGroupSpec.builder
(CommandLine.Model.IAnnotatedElement annotatedElement) Returns a newCommandLine.Model.ArgGroupSpec.Builder
associated with the specified annotated element.CommandLine.Model.ArgGroupSpec.Builder.exclusive
(boolean newValue) Sets whether this is a mutually exclusive group;true
by default.CommandLine.Model.ArgGroupSpec.Builder.getter
(CommandLine.Model.IGetter getter) Sets theCommandLine.Model.IGetter
that is responsible for getting the value of the annotated program element associated with this group, and returns this builder.Sets the heading of this group (may benull
), used when generating the usage documentation.CommandLine.Model.ArgGroupSpec.Builder.headingKey
(String newValue) Sets the heading key of this group, used to get the heading from a resource bundle.CommandLine.Model.ArgGroupSpec.Builder.multiplicity
(String newValue) Sets the multiplicity of this group: how many occurrences it may have on the command line;"0..1"
(optional) by default.CommandLine.Model.ArgGroupSpec.Builder.multiplicity
(CommandLine.Range newValue) Sets the multiplicity of this group: how many occurrences it may have on the command line;"0..1"
(optional) by default.CommandLine.Model.ArgGroupSpec.Builder.order
(int order) Sets the position in the options list in the usage help message at which this group should be shown, and returns this builder.CommandLine.Model.ArgGroupSpec.Builder.scope
(CommandLine.Model.IScope scope) Sets theCommandLine.Model.IScope
that targets where the setter sets the value of the annotated program element associated with this group, and returns this builder.CommandLine.Model.ArgGroupSpec.Builder.setter
(CommandLine.Model.ISetter setter) Sets theCommandLine.Model.ISetter
that is responsible for modifying the value of the annotated program element associated with this group, and returns this builder.CommandLine.Model.ArgGroupSpec.Builder.typeInfo
(CommandLine.Model.ITypeInfo newValue) Sets the type info for the annotated program element associated with this group, and returns this builder.CommandLine.Model.ArgGroupSpec.Builder.updateArgGroupAttributes
(CommandLine.ArgGroup group) Updates this builder from the specified annotation values.CommandLine.Model.ArgGroupSpec.Builder.validate
(boolean newValue) 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.