Package com.e1c.g5.v8.dt.cli.api
Annotation Interface Argument
Annotation to mark command line arguments of a command.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefault value of the argument (string representation).Argument help message or the variable name from the Messages class from the same package as the command.Class<?>
Collection argument type.String[]
Argument name and aliases which must start with the hyphen character. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Special value which means a value is not provided.
-
Field Details
-
UNSPECIFIED
Special value which means a value is not provided.- See Also:
-
-
Element Details
-
value
String[] valueArgument name and aliases which must start with the hyphen character. If empty, this is a keyless (positional) argument. At most one of those is allowed per command, and it must be the last one.- Default:
- {}
-
descriptor
String descriptorArgument help message or the variable name from the Messages class from the same package as the command. In the later case, NLS is used to produce localized help message.- Default:
- ""
-
defaultValue
String defaultValueDefault value of the argument (string representation). If this value isUNSPECIFIED
, the argument is required. If this value is specified, the argument is not required, in which case if it's not provided, this value (converted to the Argument's actual type) will be passed to the method.- Default:
- "com.e1c.g5.v8.dt.cli.api.unspecified.argument"
-
elementType
Class<?> elementTypeCollection argument type. Due to limitations of Java types of collection elements aren't acccesible in runtime so we need to provide types for collection arguments- Default:
- java.lang.Object.class
-