public static final class CommandLine.Builder
extends java.lang.Object
CommandLine instance
using descriptive methods.| Modifier and Type | Field and Description |
|---|---|
private CommandLine |
commandLine
CommandLine that is being build by this Builder.
|
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CommandLine.Builder |
addArg(java.lang.String arg)
Add left-over unrecognized option/argument.
|
CommandLine.Builder |
addOption(Option opt)
Add an option to the command line.
|
CommandLine |
build() |
private final CommandLine commandLine
public CommandLine.Builder addOption(Option opt)
opt - the processed optionpublic CommandLine.Builder addArg(java.lang.String arg)
arg - the unrecognized option/argument.public CommandLine build()