public class LineHelper extends Object
| Constructor and Description |
|---|
LineHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static Set |
findOptions(CommandLine
Of a collection of specified option names, find those options that are present in the
CommandLine argument.
|
static List |
getRemainingArguments(CommandLine
|
static boolean |
getValue(CommandLine
|
public static boolean getValue(CommandLineline, String optionName, boolean defaultValue, boolean trueIfPresent)
public static List<String > getRemainingArguments(CommandLine line)
public static Set<String > findOptions(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.