@Retention(value=RUNTIME)
@Inherited
public @interface Flag
This annotation is used to mark the command line flags of a ShellCommand. Every ShellCommand must add this annotation
to all methods that represent flags.
The default values to assign to the arguments of a flag.
Element Detail
values
public abstract java.lang.String[] values
The default values to assign to the arguments of a flag.
Default:
{}
group
public abstract java.lang.String group
Assigns the flag to a flag group. Flags with the same group name are mutually exclusive.
Default:
""
primary
public abstract boolean primary
Primary flags are on by default. Primary flags are set to inactive if another flag in the same group is entered
on the command line. Only one flag in a group can be primary (since flags in a group are mutually exclusive).