T - Command Typepublic class GreedyMaybeListValueOptionParser<T> extends MaybeListValueOptionParser<T>
MaybeListValueOptionParser that is greedy
This primarily makes a difference when used with commands that also use Arguments or DefaultOption.
If that is the case using this parser could incorrectly consume values not intended to be part of the list. Users
creating CLIs should be certain that this represents the behaviour they want.
| Constructor and Description |
|---|
GreedyMaybeListValueOptionParser() |
GreedyMaybeListValueOptionParser(char separator) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canGreedySearch(ParseState<T> state)
Gets whether we can do a greedy search for list value(s)
|
parseOptionsgetValuesfindOption, findOption, hasShortNamePrefix, isSeparatorOrOption, noValueForOptiongetTypeConverterpublic GreedyMaybeListValueOptionParser()
public GreedyMaybeListValueOptionParser(char separator)
protected boolean canGreedySearch(ParseState<T> state)
MaybeListValueOptionParsercanGreedySearch in class MaybeListValueOptionParser<T>state - Parser StateCopyright © 2012–2022. All rights reserved.