code: public void setOptNoColor(boolean optNoColor) {
      checkCanSetNoArgOption("--no-color");
      if (optNoColor && optColor) {
        throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
            + "  --no-color cannot be used with --color.");
      } 
      this.optNoColor = optNoColor;
    }
docs: Checks whether the --no-color option should be set and sets it.
  
  @param optNoColor True if the --no-color option should be used, false otherwise.