javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java
public void checkCanSetCreateOption(String option) {
    if (isOptColor() || isOptNoColor() || isOptR() || isOptA() || isOptVerbose() ||
        isOptMerged() || isOptNoMerged() || (null != getOptContains()) || isOptMLower() || 
        isOptMUpper() || isOptDLower() || isOptDUpper()) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120") + option + 
      " should be used with a branch name and optional start point, to create a branch");
    }
  }
public void checkCanSetCreateOption(String option) {
    if (isOptColor() || isOptNoColor() || isOptR() || isOptA() || isOptVerbose() ||
        isOptMerged() || isOptNoMerged() || (null != getOptContains()) || isOptMLower() || 
        isOptMUpper() || isOptDLower() || isOptDUpper()) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120") + option + 
      " should be used with a branch name and optional start point, to create a branch");
    }
  }
Checks whether an option for creating 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.