Class Main


public class Main extends Command
Entry point for all command line operations.
  • Field Details

  • Constructor Details

  • Method Details

    • description

      public String description()
      Specified by:
      description in class Command
      Returns:
      Short description of the command.
    • usage

      public String usage(CommandParser parser)
      Overrides:
      usage in class Command
      Parameters:
      parser - parser for this command
      Returns:
      usage string displayed for help
    • execute

      public int execute(PrintWriter out, PrintWriter err) throws Exception
      Description copied from class: Command
      Executes the given command.
      Specified by:
      execute in class Command
      Parameters:
      out - std out
      err - std err
      Returns:
      exit code, should be 0 for normal operation
      Throws:
      Exception - any exception that my occur during execution
    • main

      public static void main(String... args) throws Exception
      Main entry point for program invocations.
      Parameters:
      args - program arguments
      Throws:
      Exception - All internal exceptions are directly passed on to get printed on the console