code: public void checkCanSetRenameOption(String option) {
      if (isOptColor() || isOptNoColor() || isOptR() || isOptA() || isOptVerbose() ||
          isOptMerged() || isOptNoMerged() || (null != getOptContains()) || isOptTrack() || 
          isOptNoTrack() || isOptL() || isOptF() || isOptDLower() || isOptDUpper()) {
        throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120") + option + 
        " should be used with optional oldbranch and newbranch, to rename oldbranch/current branch" +
        "to newbranch.");
      }
    }
docs: Checks whether an option for renaming a branch can be set. If not, throws an
  <code>IllegalArgumentException</code>.
  
  @param option
  The name of the option being checked; for use in exception messages.