public class OptionHelper extends Object
| Constructor and Description |
|---|
OptionHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static Option |
add(Options
Add an option to the options specified by parameters
|
static Option |
add(Options
Add an option to the options specified by parameters
|
static Option |
addL(Options
Add a long option to the options specified by parameters
|
static Option |
addL(Options
Add a long option to the options specified by parameters
|
static Option |
addS(Options
Add a short option to the options specified by parameters
|
static Option |
addS(Options
Add a short option to the options specified by parameters
|
public static OptionaddS(Options options, String opt, boolean hasArg, boolean required, String description)
options - the options to add to.
opt - the short option name.
hasArg - whether it expects an argument
required - whether this is a required option.
description - the option description
public static OptionaddS(Options options, String opt, boolean hasArg, boolean required, String argName, String description)
options - the options to add to.
opt - the short 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
public static OptionaddL(Options options, String longName, boolean hasArg, boolean required, String description)
options - the options to add to.
longName - the long option name.
hasArg - whether it expects an argument
required - whether this is a required option.
description - the option description
public static OptionaddL(Options options, String longName, boolean hasArg, boolean required, String argName, String description)
options - the options to add to.
longName - the long 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
public static Optionadd(Options options, String opt, String longName, boolean hasArg, boolean required, String description)
options - the options to add to.
opt - the short option name.
longName - the long option name.
hasArg - whether it expects an argument
required - whether this is a required option.
description - the option description
public static Optionadd(Options options, String opt, String longName, boolean hasArg, boolean required, String argName, String description)
options - the options to add to.
opt - the short option name.
longName - the long 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