public interface OptionsProvider extends OptionsClassProvider
EMPTY
Modifier and Type | Method and Description |
---|---|
java.util.List<OptionsParser.OptionValueDescription> |
asListOfEffectiveOptions()
Returns a list of all options, including undocumented ones, and their
effective values.
|
java.util.List<OptionsParser.UnparsedOptionValueDescription> |
asListOfExplicitOptions()
Returns a list of all explicitly specified options, suitable for logging
or for displaying back to the user.
|
java.util.List<OptionsParser.UnparsedOptionValueDescription> |
asListOfUnparsedOptions()
Returns a mutable copy of the list of all options that were specified
either explicitly or implicitly.
|
java.util.List<java.lang.String> |
canonicalize()
Canonicalizes the list of options that this OptionsParser has parsed.
|
boolean |
containsExplicitOption(java.lang.String string)
Returns if the named option was specified explicitly in a call to parse.
|
java.util.List<java.lang.String> |
getResidue()
Returns an immutable copy of the residue, that is, the arguments that
have not been parsed.
|
getOptions
java.util.List<java.lang.String> getResidue()
boolean containsExplicitOption(java.lang.String string)
java.util.List<OptionsParser.UnparsedOptionValueDescription> asListOfUnparsedOptions()
The returned list can be filtered if undocumented, hidden or implicit options should not be displayed.
java.util.List<OptionsParser.UnparsedOptionValueDescription> asListOfExplicitOptions()
The list includes undocumented options.
java.util.List<OptionsParser.OptionValueDescription> asListOfEffectiveOptions()
java.util.List<java.lang.String> canonicalize()