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;
    }