Annotation Type Command


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface Command
Marks a class as a command.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Description of the command.
    boolean
    If true, this command won't appear in the usage().
  • Element Details

    • name

      String name
      Name of the command. Command name is split on white space to form a multi-word name.
    • description

      String description
      Description of the command.
      Default:
      ""
    • hidden

      boolean hidden
      If true, this command won't appear in the usage().
      Default:
      false