| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_ARITY
How many parameter values this parameter will consume. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Class | |
| public String | |
| public String | |
| public boolean | |
| public boolean | Returns: ncIf true, this parameter can be overwritten through a file or another appearance of the parameter |
| public boolean | |
| public Class | |
| public String[] | |
| public int | order()
If specified, this number will be used to order the description of this parameter when usage() is invoked. |
| public boolean | password()
If true, this parameter is a password and it will be prompted on the console (if available). |
| public boolean | |
| public Class | |
| public Class | |
| public Class | |
| public boolean |
| DEFAULT_ARITY | back to summary |
|---|---|
| public static final int DEFAULT_ARITY How many parameter values this parameter will consume. For example, an arity of 2 will allow "-pair value1 value2". | |
| arity | back to summary |
|---|---|
| public int arity() | |
| converter | back to summary |
|---|---|
| public Class The string converter to use for this field. If the field is of type List and not listConverter attribute was specified, JCommander will split the input in individual values and convert each of them separately. | |
| description | back to summary |
|---|---|
| public String description() A description of this option. | |
| descriptionKey | back to summary |
|---|---|
| public String descriptionKey() The key used to find the string in the message bundle. | |
| echoInput | back to summary |
|---|---|
| public boolean echoInput() If true, console will not echo typed input Used in conjunction with password = true | |
| forceNonOverwritable | back to summary |
|---|---|
| public boolean forceNonOverwritable() If true, this parameter can be overwritten through a file or another appearance of the parameter
| |
| help | back to summary |
|---|---|
| public boolean help() If true, this parameter is for help. If such a parameter is specified, required parameters are no longer checked for their presence. | |
| listConverter | back to summary |
|---|---|
| public Class The list string converter to use for this field. If it's specified, the field has to be of type List and the converter needs to return a List that's compatible with that type. | |
| names | back to summary |
|---|---|
| public String[] names() An array of allowed command line parameters (e.g. "-d", "--outputdir", etc...). If this attribute is omitted, the field it's annotating will receive all the unparsed options. There can only be at most one such annotation. | |
| order | back to summary |
|---|---|
| public int order() If specified, this number will be used to order the description of this parameter when usage() is invoked. | |
| password | back to summary |
|---|---|
| public boolean password() If true, this parameter is a password and it will be prompted on the console (if available). | |
| required | back to summary |
|---|---|
| public boolean required() Whether this option is required. | |
| splitter | back to summary |
|---|---|
| public Class What splitter to use (applicable only on fields of type List). By default, a comma separated splitter will be used. | |
| validateValueWith | back to summary |
|---|---|
| public Class Validate the value for this parameter. | |
| validateWith | back to summary |
|---|---|
| public Class Validate the parameter found on the command line. | |
| variableArity | back to summary |
|---|---|
public boolean variableArity()
| |