At first I thought this was a parser to automatically convert help text for a command into an argument parser. Something I didn’t realize I needed until right now. Someone write that thing too!
After a doc string put:
import docopt
args = docopt.docopt(__doc__, version='0.0.1')
Edit: krapht points out there is now support for multiple languages: https://github.com/docopt