public function getOption($name)
    {
        if (!array_key_exists($name, $this->commandOptions)) {
            return null;
        }

        $option = $this->commandOptions[$name];

        if ($option->hasBeenProvided() && $option->getProvidedValue() === null && $option->getDefaultValue() === null) {
            return true;
        }

        return $option->getValue();
    }
public function getOption($name)
    {
        if (!array_key_exists($name, $this->commandOptions)) {
            return null;
        }

        $option = $this->commandOptions[$name];

        if ($option->hasBeenProvided() && $option->getProvidedValue() === null && $option->getDefaultValue() === null) {
            return true;
        }

        return $option->getValue();
    }
public function getOption ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> commandOptions ) ) { return null ; } $ option = $ this -> commandOptions [ $ name ] ; if ( $ option -> hasBeenProvided ( ) && $ option -> getProvidedValue ( ) === null && $ option -> getDefaultValue ( ) === null ) { return true ; } return $ option -> getValue ( ) ; }
Returns null if the value doesn't exist. Otherwise, it's whatever was passed to it or set
as a default value.

@param string $name

@return mixed|null
Returns null if the value doesn t exist . Otherwise it s whatever was passed to it or set as a default value .