src/console/io/Input.php
public function getOption($name) {
        if (!$this->docoptResult)
            return false;

        if ($this->isOption($name)) {
            $value = $this->docoptResult[$name];
            if (is_array($value))                                   // repetitive option with arguments
                return $value ? $value[0] : false;
            /*
            if (is_int($value))  return $value;                     // repetitive option without arguments
            if (is_bool($value)) return $value;                     // non-repetitive option, no arguments
            else                 return $value;                     // non-repetitive option with argument
            */
            return $value;
        }
        return false;
    }
public function getOption($name) {
        if (!$this->docoptResult)
            return false;

        if ($this->isOption($name)) {
            $value = $this->docoptResult[$name];
            if (is_array($value))                                   // repetitive option with arguments
                return $value ? $value[0] : false;
            /*
            if (is_int($value))  return $value;                     // repetitive option without arguments
            if (is_bool($value)) return $value;                     // non-repetitive option, no arguments
            else                 return $value;                     // non-repetitive option with argument
            */
            return $value;
        }
        return false;
    }
public function getOption ( $ name ) { if ( ! $ this -> docoptResult ) return false ; if ( $ this -> isOption ( $ name ) ) { $ value = $ this -> docoptResult [ $ name ] ; if ( is_array ( $ value ) ) // repetitive option with arguments return $ value ? $ value [ 0 ] : false ; /*
            if (is_int($value))  return $value;                     // repetitive option without arguments
            if (is_bool($value)) return $value;                     // non-repetitive option, no arguments
            else                 return $value;                     // non-repetitive option with argument
            */ return $ value ; } return false ; }
Return the value of the option with the given name.

If the option is not repetitive and has no arguments a boolean value is returned. If the option is repetitive and has
no arguments an integer is returned indicating the number of times the option was specified. If the option has
arguments the first argument is returned. The returned value may be the defined default value.
See {@link Input::isOption()} for the definition of "option".

@param  string $name

@return bool|int|string - option value or FALSE if the option was not specified
Return the value of the option with the given name .