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 .