examples/src/main/java/io/github/agentsoz/jill/example/tokenpassing/TokenAgent2.java
public static void parse(String[] args) {
    for (int i = 0; i < args.length; i++) {
      if ("-rounds".equals(args[i]) && i + 1 < args.length) {
        i++;
        try {
          rounds = Integer.parseInt(args[i]);
        } catch (NumberFormatException e) {
          Log.warn("Value '" + args[i] + "' is not a number");
        }
      }
    }
  }
public static void parse(String[] args) {
    for (int i = 0; i < args.length; i++) {
      if ("-rounds".equals(args[i]) && i + 1 < args.length) {
        i++;
        try {
          rounds = Integer.parseInt(args[i]);
        } catch (NumberFormatException e) {
          Log.warn("Value '" + args[i] + "' is not a number");
        }
      }
    }
  }
Parses the command line arguments.

@param args the command line arguments