The code is on gist.github.
https://gist.github.com/4404545

I adapted this Foo code from someone else on the Internet. I am creating custom directive. 
My end goal is to retrieve option_spec back with key/value pair.

Suppose

.. foo::arg
    :prompt: Hello?
    :another-option: Hi

I want to get {'prompt': 'Hello?', 'another-option': 'Hi'} back. I don't need anything else, but that dictionary.
I browsed docutils source code but I am not sure how to fill in the required parameters for `docutils.parsers.rst.Directive`.__init__

Can someone please help? Thanks.

Yeukhon Wong