Annotation Interface Usage


@Retention(RUNTIME) @Target(METHOD) public @interface Usage
Declares a command usage method and provides example invocations for help output.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Example command usages to display in help output.
  • Element Details

    • examples

      String[] examples
      Example command usages to display in help output. Each string should represent an invocation with valid input for the command.
      Returns:
      array of example usages
      Default:
      {}