public int getInteger(String key, String description, int defaultValue) {
    String value = getArg(key, Integer.toString(defaultValue));
    int parsed = switch (value.toLowerCase(Locale.ROOT)) {
      case "false" -> 0;
      case "true" -> defaultValue;
      default -> Integer.parseInt(value);
    };
    logArgValue(key, description, parsed);
    return parsed;
  }
Returns an argument as integer.

@throws NumberFormatException if the argument cannot be parsed as an integer
planetiler-core/src/main/java/com/onthegomap/planetiler/config/Arguments.java