src/Operation/Traits/OptionsTrait.php
protected function getOption(string $name, $default = null)
    {
        if (!$this->hasOption($name)) {
            return $default;
        }

        if (array_key_exists($name, $this->options)) {
            return $this->options[$name];
        }

        if (!isset($this->aliases) || !isset($this->aliases[$name])) {
            return false;
        }

        foreach ($this->aliases[$name] as $name) {
            return $this->hasOption($name);
        }

        return false;
    }
protected function getOption(string $name, $default = null)
    {
        if (!$this->hasOption($name)) {
            return $default;
        }

        if (array_key_exists($name, $this->options)) {
            return $this->options[$name];
        }

        if (!isset($this->aliases) || !isset($this->aliases[$name])) {
            return false;
        }

        foreach ($this->aliases[$name] as $name) {
            return $this->hasOption($name);
        }

        return false;
    }
@param string $name
@param mixed  $default

@return mixed