Class AbstractConsoleCommandExtension

    • Constructor Detail

      • AbstractConsoleCommandExtension

        public AbstractConsoleCommandExtension​(String cmd,
                                               String desc)
        Generate a new console command extension.
        Parameters:
        cmd - The command the extension is used for.
        desc - The description what this extension is handling.
    • Method Detail

      • buildCommandUsage

        protected String buildCommandUsage​(String description)
        Build a command usage string. You should always use that function to use a usage string that complies to a standard format.
        Parameters:
        description - the description of the command
        Returns:
        a usage string that complies to a standard format
      • buildCommandUsage

        protected String buildCommandUsage​(String syntax,
                                           String description)
        Build a command usage string. You should always use that function to use a usage string that complies to a standard format.
        Parameters:
        syntax - the syntax format
        description - the description of the command
        Returns:
        a usage string that complies to a standard format
      • printUsage

        protected void printUsage​(Console console)
        Print the whole usages to the console.
        Parameters:
        console - the console that should be used for output