Modifier and Type | Method and Description |
---|---|
Option.Builder |
Option.Builder.argName(String argName)
Sets the display name for the argument value.
|
static Option.Builder |
Option.builder()
Returns a
Option.Builder to create an Option using descriptive
methods. |
static Option.Builder |
Option.builder(String opt)
Returns a
Option.Builder to create an Option using descriptive
methods. |
Option.Builder |
Option.Builder.desc(String description)
Sets the description for this option.
|
Option.Builder |
Option.Builder.hasArg()
Indicates that the Option will require an argument.
|
Option.Builder |
Option.Builder.hasArg(boolean hasArg)
Indicates if the Option has an argument or not.
|
Option.Builder |
Option.Builder.hasArgs()
Indicates that the Option can have unlimited argument values.
|
Option.Builder |
Option.Builder.longOpt(String longOpt)
Sets the long name of the Option.
|
Option.Builder |
Option.Builder.numberOfArgs(int numberOfArgs)
Sets the number of argument values the Option can take.
|
Option.Builder |
Option.Builder.optionalArg(boolean isOptional)
Sets whether the Option can have an optional argument.
|
Option.Builder |
Option.Builder.required()
Marks this Option as required.
|
Option.Builder |
Option.Builder.required(boolean required)
Sets whether the Option is mandatory.
|
Option.Builder |
Option.Builder.type(Class<?> type)
Sets the type of the Option.
|
Option.Builder |
Option.Builder.valueSeparator()
The Option will use '=' as a means to separate argument value.
|
Option.Builder |
Option.Builder.valueSeparator(char sep)
The Option will use
sep as a means to
separate argument values. |
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.