public class OptionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OptionUtils.OptionConsumer |
| Constructor and Description |
|---|
OptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
private static long |
parseLong(String v) |
static void |
parseOption(String option,
OptionUtils.OptionConsumer setter)
Parses a given option value specification.
|
static void |
printFlags(SortedMap<String,OptionDescriptor> options,
String prefix) |
private static List<String> |
wrap(String text,
int width)
Wraps some given text to one or more lines of a given maximum width.
|
public OptionUtils()
public static void parseOption(String option, OptionUtils.OptionConsumer setter)
option - the specification of an option and its valuesetter - the object to notify of the parsed option and value.private static List<String> wrap(String text, int width)
text - text to wrapwidth - maximum width of an output line, exception for words in text longer than
this valuetext broken into linespublic static void printFlags(SortedMap<String,OptionDescriptor> options, String prefix)