
This contrib extension, sphinxcontrib.autoprogram, provides an automated way to document CLI programs. It scans argparse.ArgumentParser object, and then expands it into a set of .. program:: and .. option:: directives.
In order to use it, add sphinxcontrib.autoprogram into extensions list of your Sphinx configuration file (conf.py)
This package contains the Python 2 version.