code: public String settings(boolean showUnpublicized) {
      StringJoiner out = new StringJoiner(lineSeparator);
  
      // Determine the length of the longest name
      int maxLength = maxOptionLength(options, showUnpublicized);
  
      // Create the settings string
      for (OptionInfo oi : options) {
        @SuppressWarnings("formatter") // format string computed from maxLength
        String use = String.format("%-" + maxLength + "s = ", oi.longName);
        try {
          use += oi.field.get(oi.obj);
        } catch (Exception e) {
          throw new Error("unexpected exception reading field " + oi.field, e);
        }
        out.add(use);
      }
  
      return out.toString();
    }
docs: Returns a string containing the current setting for each option, in command-line format that
  can be parsed by Options. Contains every known option even if the option was not specified on
  the command line. Never contains duplicates.
  
  @param showUnpublicized if true, treat all unpublicized options and option groups as publicized
  @return a command line that can be tokenized with {@link #tokenize}, containing the current
  setting for each option