jill/src/main/java/io/github/agentsoz/jill/util/ArgumentsLoader.java
private static void parseArgumentWithOption(String arg, String opt) {
    switch (arg) {
      case "--config":
        config = loadConfigFromString(opt);
        break;
      case "--configfile":
        config = loadConfigFromFile(opt);
        break;
      case "--exit-on-idle":
        GlobalConstant.EXIT_ON_IDLE = Boolean.parseBoolean(opt);
        break;
      case "--plan-selection-policy":
        try {
          GlobalConstant.PLAN_SELECTION_POLICY = GlobalConstant.PlanSelectionPolicy.valueOf(opt);
        } catch (IllegalArgumentException e) {
          abort("Unknown plan selection policy '" + opt + "'");
        }
        break;
      case "--plan-instances-limit":
        try {
          GlobalConstant.PLAN_INSTANCES_LIMIT = Integer.parseInt(opt);
        } catch (NumberFormatException e) {
          abort("Option value '" + opt + "' is not a number");
        }
        break;
      default:
        // Ignore any other arguments (which may be used by components external to Jill)
        break;
    }
  }
private static void parseArgumentWithOption(String arg, String opt) {
    switch (arg) {
      case "--config":
        config = loadConfigFromString(opt);
        break;
      case "--configfile":
        config = loadConfigFromFile(opt);
        break;
      case "--exit-on-idle":
        GlobalConstant.EXIT_ON_IDLE = Boolean.parseBoolean(opt);
        break;
      case "--plan-selection-policy":
        try {
          GlobalConstant.PLAN_SELECTION_POLICY = GlobalConstant.PlanSelectionPolicy.valueOf(opt);
        } catch (IllegalArgumentException e) {
          abort("Unknown plan selection policy '" + opt + "'");
        }
        break;
      case "--plan-instances-limit":
        try {
          GlobalConstant.PLAN_INSTANCES_LIMIT = Integer.parseInt(opt);
        } catch (NumberFormatException e) {
          abort("Option value '" + opt + "' is not a number");
        }
        break;
      default:
        // Ignore any other arguments (which may be used by components external to Jill)
        break;
    }
  }
private static void parseArgumentWithOption ( String arg , String opt ) { switch ( arg ) { case "--config" : config = loadConfigFromString ( opt ) ; break ; case "--configfile" : config = loadConfigFromFile ( opt ) ; break ; case "--exit-on-idle" : GlobalConstant . EXIT_ON_IDLE = Boolean . parseBoolean ( opt ) ; break ; case "--plan-selection-policy" : try { GlobalConstant . PLAN_SELECTION_POLICY = GlobalConstant . PlanSelectionPolicy . valueOf ( opt ) ; } catch ( IllegalArgumentException e ) { abort ( "Unknown plan selection policy '" + opt + "'" ) ; } break ; case "--plan-instances-limit" : try { GlobalConstant . PLAN_INSTANCES_LIMIT = Integer . parseInt ( opt ) ; } catch ( NumberFormatException e ) { abort ( "Option value '" + opt + "' is not a number" ) ; } break ; default : // Ignore any other arguments (which may be used by components external to Jill) break ; } }
Parses the given command line argument and associated option. Will abort if an unrecoverable
error occurs.

@param arg the argument to parse
@param opt the options to parse for that argument
Parses the given command line argument and associated option . Will abort if an unrecoverable error occurs .