Framework for creating command-line interfaces from docstrings.
docopt creates beautiful command-line interfaces:
The docopt Python module allows you to create powerful command line interfaces by simply passing a usage string like those printed by many posix tools. The command parser is automatically generated from the usage and the results of parsing provided arguments are returned as a dict.
Video introduction to docopt: PyCon UK 2012: Create beautiful command-line interfaces with Python.
The docopt module has also been ported to several other programming languages