System.out.println("zmprov [cmd] [args ...]");
System.out.println("zmprov [args] [cmd] [cmd-args ...]"); System.out.println(""); System.out.println("  -h/--help                      display usage"); System.out.println("  -s/--server   {host}[:{port}]  server hostname and optional port"); System.out.println("  -l/--ldap                      provision via LDAP instead of SOAP"); System.out.println("  -a/--account  {name}           account name to auth as"); System.out.println("  -p/--password {pass}           password for account"); System.out.println("  -v/--verbose                   verbose mode");
    private void usage() {        System.out.println("zmprov [cmd] [args ...]");        System.out.println("");        for (Command c : Command.values()) {            if (!c.hasHelp()) continue;            System.out.printf("  %s(%s) %s\n", c.getName(), c.getAlias(), c.getHelp());        }                System.out.println("");                        StringBuilder sb = new StringBuilder();        EntrySearchFilter.Operator vals[] = EntrySearchFilter.Operator.values();        for (int i = 0; i < vals.length; i++) {            if (i > 0)                sb.append(", ");            sb.append(vals[i].toString());        }        System.out.println("    op = " + sb.toString());        System.out.println();                if (!mInteractive)            System.exit(1);    }