| Package | Description |
|---|---|
| org.apache.commons.cli |
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
|
| Modifier and Type | Method | Description |
|---|---|---|
static OptionBuilder |
OptionBuilder.hasArg()
Deprecated.
The next Option created will require an argument value.
|
|
static OptionBuilder |
OptionBuilder.hasArg(boolean hasArg)
Deprecated.
The next Option created will require an argument value if
hasArg is true. |
|
static OptionBuilder |
OptionBuilder.hasArgs()
Deprecated.
The next Option created can have unlimited argument values.
|
|
static OptionBuilder |
OptionBuilder.hasArgs(int num)
Deprecated.
The next Option created can have
num argument values. |
|
static OptionBuilder |
OptionBuilder.hasOptionalArg()
Deprecated.
The next Option can have an optional argument.
|
|
static OptionBuilder |
OptionBuilder.hasOptionalArgs()
Deprecated.
The next Option can have an unlimited number of optional arguments.
|
|
static OptionBuilder |
OptionBuilder.hasOptionalArgs(int numArgs)
Deprecated.
The next Option can have the specified number of optional arguments.
|
|
static OptionBuilder |
OptionBuilder.isRequired()
Deprecated.
The next Option created will be required.
|
|
static OptionBuilder |
OptionBuilder.isRequired(boolean newRequired)
Deprecated.
The next Option created will be required if
required is true. |
|
static OptionBuilder |
OptionBuilder.withArgName(String name)
Deprecated.
The next Option created will have the specified argument value name.
|
|
static OptionBuilder |
OptionBuilder.withDescription(String newDescription)
Deprecated.
The next Option created will have the specified description
|
|
static OptionBuilder |
OptionBuilder.withLongOpt(String newLongopt)
Deprecated.
The next Option created will have the following long option value.
|
|
static OptionBuilder |
OptionBuilder.withType(Class<?> newType)
Deprecated.
The next Option created will have a value that will be an instance of
type. |
|
static OptionBuilder |
OptionBuilder.withType(Object newType)
Deprecated.
Since 1.3, use
withType(Class) instead. |
|
static OptionBuilder |
OptionBuilder.withValueSeparator()
Deprecated.
The next Option created uses '
=' as a means to separate argument values. |
|
static OptionBuilder |
OptionBuilder.withValueSeparator(char sep)
Deprecated.
The next Option created uses
sep as a means to separate argument values. |
Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository