T
- The concrete type of the builderpublic static interface CommandLine.Builder<T extends CommandLine.Builder>
Modifier and Type | Method and Description |
---|---|
T |
addOption(String name,
String description)
Add an option.
|
CommandLine |
parse(String... args)
Parses the given list of command line arguments.
|
CommandLine |
parseString(String string)
Parses a string of all the command line options converting them into an array of arguments to pass to #parse(String..args).
|
T addOption(String name, String description)
name
- The namedescription
- The descriptionCommandLine parseString(String string)
string
- The stringCommandLine parse(String... args)
args
- The arguments