Annotation Type SubCommand


@Retention(RUNTIME) public @interface SubCommand
Specifies a single sub-command.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The implementation class of this sub command.
    Name of the sub-command.
  • Element Details

    • name

      String name
      Name of the sub-command. This must appear as-is in the command line for this sub-command to be activated.
    • impl

      Class<?> impl
      The implementation class of this sub command. When a sub-command is selected, this class is instantiated and the rest of the arguments will be parsed against this new instance.