src/ShellOption.php
public function hasValue($value)
    {
        $index = array_search($value, $this->values);

        if ($index === false) {
            return false;
        }

        return true;
    }
public function hasValue($value)
    {
        $index = array_search($value, $this->values);

        if ($index === false) {
            return false;
        }

        return true;
    }
public function hasValue ( $ value ) { $ index = array_search ( $ value , $ this -> values ) ; if ( $ index === false ) { return false ; } return true ; }
Return whether this option has the given value or not.

@param mixed $value

@return bool
Return whether this option has the given value or not .