public static Arguments fromArgsOrConfigFile(String... args) {
    Arguments fromArgsOrEnv = fromEnvOrArgs(args);
    Path configFile = fromArgsOrEnv.file("config", "path to config file", null);
    if (configFile != null) {
      return fromArgsOrEnv.orElse(fromConfigFile(configFile));
    } else {
      return fromArgsOrEnv;
    }
  }
Returns arguments parsed from command-line arguments, JVM properties, environmental variables, or a config file.
<p>
Priority order:
<ol>
<li>command-line arguments: {@code java ... key=value}</li>
<li>jvm properties: {@code java -Dplanetiler.key=value ...}</li>
<li>environmental variables: {@code PLANETILER_KEY=value java ...}</li>
<li>in a config file from "config" argument from any of the above</li>
</ol>

@param args command-line args provide to main entrypoint method
@return arguments parsed from those sources
planetiler-core/src/main/java/com/onthegomap/planetiler/config/Arguments.java