T
- The concrete type of the builderpublic static interface CommandLine.Builder<T extends CommandLine.Builder>
Modifier and Type | Method and Description |
---|---|
T |
addOption(java.lang.String name,
java.lang.String description)
Add an option.
|
CommandLine |
parse(java.lang.String... args)
Parses the given list of command line arguments.
|
CommandLine |
parseString(java.lang.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(java.lang.String name, java.lang.String description)
name
- The namedescription
- The descriptionCommandLine parseString(java.lang.String string)
string
- The stringCommandLine parse(java.lang.String... args)
args
- The arguments