Annotation Type CommandLine.Option
- Enclosing class:
CommandLine
Marks a field that receives an option.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionHow many values one occurrence takes:1,0..1,1..*.Class<?> A converter for a type the build does not convert by itself.The value used when the option is absent.String[]Help text.booleanLeaves the option out of the help.booleanWhether--no-<name>sets a boolean to false.The placeholder printed for the value.booleanWhether a command line without the option is an error.A separator that splits one value into several, such as,.
-
Element Details
-
names
String[] namesThe option's names, such as-vand--verbose. -
description
-
required
boolean requiredWhether a command line without the option is an error.- Default:
false
-
arity
-
paramLabel
-
defaultValue
String defaultValueThe value used when the option is absent.${env:NAME}reads an environment variable.- Default:
""
-
negatable
boolean negatableWhether--no-<name>sets a boolean to false.- Default:
false
-
split
-
converter
-