protected function getOptionType($opt)
    {
        if (substr($opt, -1) == '=') {
            return self::REQUIRED;
        } elseif (Strings::contains($opt, '=')) {
            return self::VALUE;
        } else {
            return self::OPTIONAL;
        }
    }