public static void main()

in baremaps-cli/src/main/java/org/apache/baremaps/cli/Baremaps.java [44:63]


  public static void main(String... args) {
    // Set the log level
    for (int i = 0; i < args.length; i++) {
      String arg = args[i];
      String level = "";
      if (arg.equals("--log-level") && i + 1 < args.length) {
        level = args[i + 1].strip();
      } else if (arg.startsWith("--log-level=")) {
        level = arg.substring(12).strip();
      }
      if (!"".equals(level)) {
        Configurator.setRootLevel(Level.getLevel(level));
      }
    }

    // Execute the command
    CommandLine cmd = new CommandLine(new Baremaps()).setUsageHelpLongOptionsMaxWidth(30)
        .addMixin("options", new Options());
    cmd.execute(args);
  }