public class ArgumentHelper extends Object
| Constructor and Description |
|---|
ArgumentHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static BooleanOption |
getBoolean(org
|
static IntegerOption |
getInteger(org
|
static StringOption |
getString(org
|
static boolean |
parseBoolean(String
|
static boolean |
parseBooleanWithDefaultValue(String
|
static int |
parseInteger(String
|
public static boolean parseBooleanWithDefaultValue(Stringvalue, boolean defaultValue)
public static boolean parseBoolean(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static int parseInteger(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static BooleanOptiongetBoolean(org .apache .commons .cli .CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static IntegerOptiongetInteger(org .apache .commons .cli .CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static StringOptiongetString(org .apache .commons .cli .CommandLine line, String option)