Uses of Class
org.apache.commons.cli.Option.Builder
-
Uses of Option.Builder in org.apache.commons.cli
Methods in org.apache.commons.cli that return Option.BuilderModifier and TypeMethodDescriptionSets the display name for the argument value.static Option.Builder
Option.builder()
Returns aOption.Builder
to create anOption
using descriptive methods.static Option.Builder
Returns aOption.Builder
to create anOption
using descriptive methods.Sets the description for this option.Option.Builder.hasArg()
Indicates that the Option will require an argument.Option.Builder.hasArg
(boolean hasArg) Indicates if the Option has an argument or not.Option.Builder.hasArgs()
Indicates that the Option can have unlimited argument values.Sets the long name of the Option.Option.Builder.numberOfArgs
(int numberOfArgs) Sets the number of argument values the Option can take.Sets the name of the Option.Option.Builder.optionalArg
(boolean isOptional) Sets whether the Option can have an optional argument.Option.Builder.required()
Marks this Option as required.Option.Builder.required
(boolean required) Sets whether the Option is mandatory.Sets the type of the Option.Option.Builder.valueSeparator()
The Option will use '=' as a means to separate argument value.Option.Builder.valueSeparator
(char sep) The Option will usesep
as a means to separate argument values.Constructors in org.apache.commons.cli with parameters of type Option.BuilderModifierConstructorDescriptionprivate
Option
(Option.Builder builder) Private constructor used by the nested Builder class.