protected void printUsage() {
    System.out.println(getUsagePrefix() + COMMANDS);
    if (command != null) {
      System.out.println(command.getUsage());
    }
    else {
      System.out.println("=========================================================" +
              "======");
      System.out.println(CreateCommand.USAGE + ":\n\n" + CreateCommand.DESC);
      System.out.println("=========================================================" +
              "======");
      System.out.println(DeleteCommand.USAGE + ":\n\n" + DeleteCommand.DESC);
      System.out.println("=========================================================" +
              "======");
      System.out.println(ListCommand.USAGE + ":\n\n" + ListCommand.DESC);
      System.out.println("=========================================================" +
              "======");
      System.out.println(GetCommand.USAGE + ":\n\n" + GetCommand.DESC);
    }
  }
Prints a command specific usage or overall tool usage.
ambari-server/src/main/java/org/apache/ambari/server/credentialapi/CredentialUtil.java