Package com.beust.jcommander
Annotation Type DynamicParameter
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe character(s) used to assign the values.A description of this option.The key used to find the string in the message bundle.boolean
If true, this parameter won't appear in the usage().String[]
An array of allowed command line parameters (e.g.int
If specified, this number will be used to order the description of this parameter when usage() is invoked.boolean
Whether this option is required.Class<? extends IValueValidator>[]
Class<? extends IParameterValidator>[]
The validation classes to use.
-
Element Details
-
names
String[] namesAn array of allowed command line parameters (e.g. "-D", "--define", etc...).- Default:
- {}
-
required
boolean requiredWhether this option is required.- Default:
- false
-
description
String descriptionA description of this option.- Default:
- ""
-
descriptionKey
String descriptionKeyThe key used to find the string in the message bundle.- Default:
- ""
-
validateWith
Class<? extends IParameterValidator>[] validateWithThe validation classes to use.- Default:
- {com.beust.jcommander.validators.NoValidator.class}
-
assignment
String assignmentThe character(s) used to assign the values.- Default:
- "="
-
validateValueWith
Class<? extends IValueValidator>[] validateValueWith- Default:
- {com.beust.jcommander.validators.NoValueValidator.class}
-
order
int orderIf specified, this number will be used to order the description of this parameter when usage() is invoked.- Returns:
- Default:
- -1
-