public function parse()
    {
        list($opt_str, $long_opts, $mapping) = $this->getOptString();
        $opts = \getopt($opt_str, $long_opts);
        $options = $this->mapOptions($opts, $mapping);
        return new Dictionary($options);
    }