Modifier and Type | Method | Description |
---|---|---|
static CommandLine.Model.UnmatchedArgsBinding |
CommandLine.Model.UnmatchedArgsBinding.forStringArrayConsumer(CommandLine.Model.ISetter setter) |
Creates a
UnmatchedArgsBinding for a setter that consumes String[] objects. |
static CommandLine.Model.UnmatchedArgsBinding |
CommandLine.Model.UnmatchedArgsBinding.forStringCollectionSupplier(CommandLine.Model.IGetter getter) |
Creates a
UnmatchedArgsBinding for a getter that produces a Collection<String> that the unmatched arguments can be added to. |
Modifier and Type | Method | Description |
---|---|---|
List<CommandLine.Model.UnmatchedArgsBinding> |
CommandLine.Model.CommandSpec.unmatchedArgsBindings() |
Returns the list of
UnmatchedArgumentsBindings configured for this command;
each UnmatchedArgsBinding captures the arguments that could not be matched to any options or positional parameters. |
Modifier and Type | Method | Description |
---|---|---|
CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addUnmatchedArgsBinding(CommandLine.Model.UnmatchedArgsBinding spec) |
Adds the specified
UnmatchedArgsBinding to the list of model objects to capture unmatched arguments for this command. |
Copyright © 2017–2019. All rights reserved.