Create an argparse.ArgumentParser from function docstrings
- automatically create a parser entirely from the docstring of a function, including the help, metavar, action, type and other parameters
- Let's you :ref:`chain subparsers <chain_subparsers>`
There are a lot of argparse extensions out there, but through the use of the docrep package, this package can extract much more information to automate the creation of the command line utility.
See :ref:`getting_started` for more information.
.. toctree:: :maxdepth: 1 getting_started docstring_interpretation api/funcargparse changelog
Simply install it via
$ pip install funcargparse
Or you install it via:
$ python setup.py install
from the source on GitHub.
The package only requires the docrep package which we use under the hood to extract the necessary parts from the docstrings.
The package has been tested for python 2.7 and 3.5.