Package com.beust.jcommander
Annotation Interface Parameters
An annotation used to specify settings for parameter parsing.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionIf the annotated class was added toJCommander
as a command withJCommander.addCommand(java.lang.String, java.lang.Object)
, then this string will be displayed in the description whenJCommander.usage()
is invoked.String[]
An array of allowed command names.boolean
If true, this command won't appear in the usage().Class<? extends IParametersValidator>[]
Validate the value for all parameters.The name of the resource bundle to use for this class.The character(s) that separate options.
-
Element Details
-
resourceBundle
String resourceBundleThe name of the resource bundle to use for this class.- Default:
""
-
separators
String separatorsThe character(s) that separate options.- Default:
" "
-
commandDescription
String commandDescriptionIf the annotated class was added toJCommander
as a command withJCommander.addCommand(java.lang.String, java.lang.Object)
, then this string will be displayed in the description whenJCommander.usage()
is invoked.- Default:
""
-
commandDescriptionKey
String commandDescriptionKey- Returns:
- the key used to find the command description in the resource bundle.
- Default:
""
-
commandNames
String[] commandNamesAn array of allowed command names.- Default:
{}
-
parametersValidators
Class<? extends IParametersValidator>[] parametersValidatorsValidate the value for all parameters.- Default:
{}
-