protected void |
Option.addValue(E value) |
Adds the specified value to the list of those parsed.
|
Boolean |
CLAParser.getBooleanOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or false if the option was not set.
|
Boolean |
CLAParser.getBooleanOptionValue(String optionName,
Boolean def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<Boolean> |
CLAParser.getBooleanOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
Double |
CLAParser.getDoubleOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
Double |
CLAParser.getDoubleOptionValue(String optionName,
Double def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<Double> |
CLAParser.getDoubleOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
File |
CLAParser.getFileOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
File |
CLAParser.getFileOptionValue(String optionName,
File def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<File> |
CLAParser.getFileOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
Float |
CLAParser.getFloatOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
Float |
CLAParser.getFloatOptionValue(String optionName,
Float def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<Float> |
CLAParser.getFloatOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
Integer |
CLAParser.getIntegerOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
Integer |
CLAParser.getIntegerOptionValue(String optionName,
Integer def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<Integer> |
CLAParser.getIntegerOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
LocalDate |
CLAParser.getLocalDateOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
LocalDate |
CLAParser.getLocalDateOptionValue(String optionName,
LocalDate def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<LocalDate> |
CLAParser.getLocalDateOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
Long |
CLAParser.getLongOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
Long |
CLAParser.getLongOptionValue(String optionName,
Long def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<Long> |
CLAParser.getLongOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
<T> Option<T> |
CLAParser.getOption(String optionName,
Class<T> type) |
Returns the Option with the specified name (either short or long).
|
<T> T |
CLAParser.getOptionValue(String optionName,
Class<T> type) |
Convenience method to return the parsed value of the named option,
or null if the option was not set,
equivalent to getOptionValue(optionName, type, null).
|
<T> T |
CLAParser.getOptionValue(String optionName,
Class<T> type,
T def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
<T> T |
CLAParser.getOptionValue(Option<T> opt) |
Convenience method to return the parsed value of the specified option,
or null if the option was not set.
|
<T> T |
CLAParser.getOptionValue(Option<T> opt,
T def) |
Convenience method to return the parsed value of the specified option,
or the specified default value if the option was not set.
|
<T> List<T> |
CLAParser.getOptionValues(String optionName,
Class<T> type) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
<T> List<T> |
CLAParser.getOptionValues(Option<T> opt) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
String |
CLAParser.getStringOptionValue(String optionName) |
Convenience method to return the parsed value of the named option,
or null if the option was not set.
|
String |
CLAParser.getStringOptionValue(String optionName,
String def) |
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
|
List<String> |
CLAParser.getStringOptionValues(String optionName) |
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
|
void |
CLAParser.parse(String[] args) |
Extract the option-mapped and unmapped arguments from the given array of
command-line arguments, using the specified locale.
|
protected Boolean |
BooleanOption.parseValue(String arg,
Locale locale) |
Parsing of a flag option makes little sense.
|
protected Double |
DoubleOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected Integer |
EnumeratedIntegerOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected String |
EnumeratedStringOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected Float |
FloatOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected Integer |
IntegerOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected LocalDate |
LocalDateOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected Long |
LongOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected abstract E |
Option.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
protected String |
StringOption.parseValue(String arg,
Locale locale) |
Parses the argument string for an option value, optionally using the
specified locale for reference (e.g.
|
void |
CLAParser.setHidden(String optionName) |
Hides the specified Option from being printed in the usage message.
|