Modifier and Type | Method | Description |
---|---|---|
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.add(CommandLine.Model.ArgSpec arg,
int position) |
Adds the specified
OptionSpec or PositionalParamSpec to the list of options and parameters
that were matched on the command line. |
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.addOption(CommandLine.Model.OptionSpec option) |
Adds the specified
OptionSpec to the list of options that were matched on the command line. |
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.addPositionalParam(CommandLine.Model.PositionalParamSpec positionalParam,
int position) |
Adds the specified
PositionalParamSpec to the list of parameters that were matched on the command line. |
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.addUnmatched(String arg) |
Adds the specified command line argument to the list of unmatched command line arguments.
|
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.addUnmatched(Stack<String> args) |
Adds all elements of the specified command line arguments stack to the list of unmatched command line arguments.
|
static CommandLine.ParseResult.Builder |
CommandLine.ParseResult.builder(CommandLine.Model.CommandSpec commandSpec) |
Creates and returns a new
ParseResult.Builder for the specified command spec. |
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.originalArgs(String[] originalArgs) |
Sets the specified command line arguments that were parsed.
|
CommandLine.ParseResult.Builder |
CommandLine.ParseResult.Builder.subcommand(CommandLine.ParseResult subcommand) |
Sets the specified
ParseResult for a subcommand that was matched on the command line. |
Copyright © 2017–2019. All rights reserved.