public boolean has ( final String name ) { if ( ! options . containsKey ( name ) ) { throw new IllegalArgumentException ( "Unknown option " + name ) ; } else if ( parsed == null ) { throw new IllegalStateException ( "parse() wasn't called" ) ; } return parsed . containsKey ( name ) ; }
Returns whether or not the given option was given .