| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentParser.Builder
Builds instances of ArgumentParser.
|
| Modifier and Type | Method and Description |
|---|---|
List<Parameter> |
getUserParameters()
Get a list of parameters that are user-provided and not provided.
|
Set<Character> |
getValueFlags()
Get a list of value flags that have been requested by the parameters.
|
Object[] |
parseArguments(CommandArgs args)
Parse the given arguments into Java objects.
|
Object[] |
parseArguments(CommandArgs args,
boolean ignoreUnusedFlags,
Set<Character> unusedFlags)
Parse the given arguments into Java objects.
|
public List<Parameter> getUserParameters()
public Set<Character> getValueFlags()
public Object[] parseArguments(CommandArgs args) throws ArgumentException, ProvisionException
args - The tokenized argumentsArgumentException - If there is a problem with the provided argumentsProvisionException - If there is a problem with the binding itselfpublic Object[] parseArguments(CommandArgs args, boolean ignoreUnusedFlags, Set<Character> unusedFlags) throws ArgumentException, ProvisionException
args - The tokenized argumentsignoreUnusedFlags - Whether unused flags should not throw an exceptionunusedFlags - List of flags that can be unconsumedArgumentException - If there is a problem with the provided argumentsProvisionException - If there is a problem with the binding itselfCopyright © 2015. All Rights Reserved.