public function extractOption($str)
    {
        // If this has an = it has a value, else its a flag.
        if (strpos($str, '=')) {
            $extraction = explode('=', $str);

            return trim(str_replace(array('\'', '"'), '', $extraction[1]));
        }

        return true;
    }