Annotation Interface Option
Declares a parameter as a named option (e.g. --amount, -a).
Options can be used alongside positional arguments.
-
Element Details
-
shortNames
-
longNames
-
flag
boolean flagMarks this option as a flag (no value required).- Returns:
- true when this is a flag
- Default:
false
-