Annotation Interface Subcommand


@Target({METHOD,TYPE}) @Retention(CLASS) public @interface Subcommand
Annotation used to define a subcommand. Apply this to a method or a nested class to mark it as a subcommand of the enclosing command.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The primary name of the subcommand.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The aliases of the subcommand.
  • Element Details

    • value

      String value
      The primary name of the subcommand.
      Returns:
      the subcommand name
    • aliases

      String[] aliases
      The aliases of the subcommand.
      Returns:
      the subcommand aliases
      Default:
      {}