code: public void setOptionsOrWarn(final String[] flags, final int startIndex, final int endIndexPlusOne) {
      for (int i = startIndex; i < endIndexPlusOne;) {
        i = setOptionOrWarn(flags, i);
      }
    }
docs: Set options based on a String array in the style of
  commandline flags. This method goes through the array until it ends,
  processing options, as for {@link #setOption}.
  
  @param flags Array of options.  The options passed in should
  be specified like command-line arguments, including with an initial
  minus sign  for example,
  {"-outputFormat", "typedDependencies", "-maxLength", "70"}
  @param startIndex The index in the array to begin processing options at
  @param endIndexPlusOne A number one greater than the last array index at
  which options should be processed
  @throws IllegalArgumentException If an unknown flag is passed in