public class LineHelper extends Object
| Constructor and Description |
|---|
LineHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static Set |
findOptions(org
Of a collection of specified option names, find those options that are present in the
CommandLine argument.
|
static List |
getRemainingArguments(org
|
static boolean |
getValue(org
|
public static boolean getValue(org.apache .commons .cli .CommandLine line, String optionName, boolean defaultValue, boolean trueIfPresent)
public static List<String > getRemainingArguments(org .apache .commons .cli .CommandLine line)
public static Set<String > findOptions(org .apache .commons .cli .CommandLine line, Collection <String > options)
CommandLine argument.
line - the command line to inspect.
options - the option names to look for.
Set of option names present in the command line parameter, a subset of the
options supplied.