Interface CLI

    • Method Detail

      • getCommandName

        @Nullable
        String getCommandName()
        A short memorable name for the command that can be used to locate this class.
        Returns:
        name; if null or blank, this will not be available as a shortcut command.
      • getShortDesc

        @Nullable
        String getShortDesc()
        Obtain a short description for this command explaining what it does.
      • getOptions

        org.apache.commons.cli.Options getOptions()
        Obtain the options for the CLI.
      • allowPositionalArguments

        boolean allowPositionalArguments()
        Indicate if this CLI allows positional arguments.
      • executeCommand

        int executeCommand​(String... args)
        Execute the given command given CLI arguments.
        Returns:
        an exit code