public boolean hasOption(Option option){
		if(option==null){
			return false;
		}
		if(this.usedOptions.contains(option.getOpt())){
			return true;
		}
		if(this.usedOptions.contains(option.getLongOpt())){
			return true;
		}
		return false;
	}
public boolean hasOption(Option option){
		if(option==null){
			return false;
		}
		if(this.usedOptions.contains(option.getOpt())){
			return true;
		}
		if(this.usedOptions.contains(option.getLongOpt())){
			return true;
		}
		return false;
	}
public boolean hasOption ( Option option ) { if ( option == null ) { return false ; } if ( this . usedOptions . contains ( option . getOpt ( ) ) ) { return true ; } if ( this . usedOptions . contains ( option . getLongOpt ( ) ) ) { return true ; } return false ; }
Tests if an option is already added to the parser.
@param option the option to test for
@return false if option was null or n short and long version of this option is used, true otherwise
Tests if an option is already added to the parser .