+ private static Options init() {
+ Options result = new Options();
+ result.addOption(createOption("c", "cmd", true, "command to execute", true));
+ result.addOption(createOption(OPTION_DATABSE_SHORT, "dburl", true, "database url", false));
+ result.addOption(createOption("dbu", "db-username", true, "database basic auth username", false));
+ result.addOption(createOption("dbp", "db-password", true, "database basic auth password", false));
+ result.addOption(createOption(OPTION_REPLICAS_SHORT, "replicas", true, "amount of replicas", false));
+ result.addOption(createOption(OPTION_SHARDS_SHORT, "shards", true, "amount of shards", false));
+ result.addOption(createOption("p", "prefix", true, "prefix for db indices", false));
+ result.addOption(createOption(OPTION_VERSION_SHORT, "version", true, "version", false));
+ result.addOption(createOption(OPTION_DEBUG_SHORT, "verbose", false, "verbose mode", false));
+ result.addOption(createOption(OPTION_TRUSTINSECURESSL_SHORT, "trust-insecure", false,
+ "trust insecure ssl certs", false));
+ result.addOption(createOption("w", "wait", true, "wait for yellow status with timeout in seconds", false));
+ result.addOption(
+ createOption(OPTION_FORCE_RECREATE_SHORT, "force-recreate", false, "delete if sth exists", false));
+ result.addOption(createOption(OPTION_SILENT_SHORT, OPTION_SILENT, false, "prevent console output", false));
+ result.addOption(createOption(OPTION_OUTPUTFILE_SHORT, "output-file", true, "file to write into", false));
+ result.addOption(createOption(OPTION_INPUTFILE_SHORT, "input-file", true, "file to read from", false));