Package org.seedstack.seed.command
Annotation Type Option
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface Option
This annotation marks fields of a command to be injected with the option value set at command invocation.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueThe default value of the option.StringdescriptionThe description of the option (used by the help command).booleanhasArgumentIf the option has an argument (i.e.StringlongNameThe long name of the option.booleanmandatoryIf the command is mandatory.
-
-
-
Element Detail
-
name
String name
The short name of the option.
-
-
-
longName
String longName
The long name of the option.- Default:
- ""
-
-
-
description
String description
The description of the option (used by the help command).- Default:
- ""
-
-
-
defaultValue
String defaultValue
The default value of the option.- Default:
- ""
-
-