Annotation Type CommandLine.Command

Enclosing class:
CommandLine

@Retention(CLASS) @Target(TYPE) public static @interface CommandLine.Command
Marks a command class.
  • Element Details

    • name

      String name
      The name the command is invoked by. Defaults to the class name in lower case.
      Default:
      ""
    • aliases

      String[] aliases
      Other names the command answers to as a subcommand.
      Default:
      {}
    • description

      String[] description
      Lines of help text.
      Default:
      {}
    • version

      String[] version
      Lines --version prints.
      Default:
      {}
    • mixinStandardHelpOptions

      boolean mixinStandardHelpOptions
      Adds -h/--help and -V/--version.
      Default:
      false
    • subcommands

      Class<?>[] subcommands
      Command classes that are subcommands of this one.
      Default:
      {}