code: 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);
    }
docs: Returns whether or not the given option was given.
  @param name The name of the option to recognize (e.g. {@code --foo}).
  @throws IllegalArgumentException if this option wasn't registered with
  {@link #addOption}.
  @throws IllegalStateException if {@link #parse} wasn't called.