public Option getOptionWithLongForm( String longForm ) throws InvalidOptionException
    {
        for (Option option : options)
        {
            if (longForm.equals( option.getLongForm() )) return option;
        }

        throw new InvalidOptionException( longForm );
    }
public Option getOptionWithLongForm ( String longForm ) throws InvalidOptionException { for ( Option option : options ) { if ( longForm . equals ( option . getLongForm ( ) ) ) return option ; } throw new InvalidOptionException ( longForm ) ; }
<p>getOptionWithLongForm.</p>

@param longForm a {@link java.lang.String} object.
@return a {@link com.greenpepper.util.cli.Option} object.
@throws com.greenpepper.util.cli.InvalidOptionException if any.