javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java
public void checkCanSetNoArgOption(String option) {
    if (isOptTrack() || isOptNoTrack() || isOptL() || isOptF() || isOptDLower() || isOptDUpper()
        || isOptMLower() || isOptMUpper()) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + option + " should be used without arguments, to display branches");
    } 
  }
public void checkCanSetNoArgOption(String option) {
    if (isOptTrack() || isOptNoTrack() || isOptL() || isOptF() || isOptDLower() || isOptDUpper()
        || isOptMLower() || isOptMUpper()) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + option + " should be used without arguments, to display branches");
    } 
  }
Checks whether an option for displaying branches can be set. If not, throws an
<code>IllegalArgumentException</code>.

@param option
The name of the option being checked; for use in exception messages.