docs: private static OutputFormat whichOutputFormat(CommandLine line) throws ParseException {
          if (!line.hasOption('f')) {
              return OutputFormat.CSV;
          }
  
          try {
              return OutputFormat.valueOf(line.getOptionValue('f'));
          } catch (IllegalArgumentException e) {
              throw new ParseException(String.format(
                      "format %s is illegal. Available formats: %s",
                      line.getOptionValue('f'),
                      Utils.join(",", OutputFormat.formatNames())));
          }
      }