public static class CliParser.ArgumentMap
extends java.lang.Object
| Constructor and Description |
|---|
ArgumentMap()
Instantiates an argument map
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOptionValue(java.lang.String name)
Gets the value of an argument
|
java.util.List<java.lang.String> |
getOthers()
Returns the list of all unnamed arguments
|
boolean |
hasOption(java.lang.String name)
Checks if an option is present in the parsed command-line arguments
|
java.lang.String |
toString() |
public boolean hasOption(java.lang.String name)
name - The option to look fortrue if the option is presentpublic java.lang.String getOptionValue(java.lang.String name)
name - The short name of the argumentnull if the argument
is not presentpublic java.util.List<java.lang.String> getOthers()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © Sylvain HallĂ©. All Rights Reserved.