public class OptionHelper extends Object
| Constructor and Description |
|---|
OptionHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static org |
add(org
Add an option to the options specified by parameters
|
static org |
add(org
Add an option to the options specified by parameters
|
public static org.apache .commons .cli .Option add(org .apache .commons .cli .Options options, String opt, boolean hasArg, boolean required, String description)
options - the options to add to.
opt - the option name.
hasArg - whether it expects an argument
required - whether this is a required option.
description - the option description
public static org.apache .commons .cli .Option add(org .apache .commons .cli .Options options, String opt, boolean hasArg, boolean required, String argName, String description)
options - the options to add to.
opt - the option name.
hasArg - whether it expects an argument
required - whether this is a required option.
argName - the name of the argument.
description - the option description