public Duration getDuration(String key, String description, String defaultValue) {
    String value = getArg(key, defaultValue);
    if (!value.startsWith("P") && !value.startsWith("T") && !value.startsWith("-")) {
      value = "PT" + value;
    }
    Duration parsed = Duration.parse(value);
    logArgValue(key, description, parsed.get(ChronoUnit.SECONDS) + " seconds");
    return parsed;
  }
Returns an argument as a {@link Duration} (i.e. "10s", "90m", "1h30m").

@throws DateTimeParseException if the argument cannot be parsed as a duration
planetiler-core/src/main/java/com/onthegomap/planetiler/config/Arguments.java