Annotation Type Parameters
An annotation used to specify settings for parameter parsing.
- Author:
- cbeust
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIf the annotated class was added toJCommanderas a command withJCommander.addCommand(String, Object), then this string will be displayed in the description whenJCommander.usage()is invoked.String[]An array of allowed command names.booleanIf 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
-
separators
-
commandDescription
String commandDescriptionIf the annotated class was added toJCommanderas a command withJCommander.addCommand(String, 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
-
parametersValidators
Class<? extends IParametersValidator>[] parametersValidatorsValidate the value for all parameters.- Default:
{}
-