Generate manual pages from executable python modules using argparse.
Archlinux users have a package in the AUR. To use the PKGBUILD as it is kept in this repository, the makepkg-template for git has to be installed.
This project uses waf to compile and install. If you already have waf installed with your distribution, you can just waf configure install
. If you do not have waf installed, execute
wget -O waf https://waf.io/waf-2.1.2
chmod 755 waf
./waf configure install
For example, this generates the manpage for a module already built into python.
manpager http.server
For more options, consult the manpager manpage.
This project also installs a waf tool for use in your own projects. It can be used to install whole python packages, generate starter scripts and manual pages to let it look like an ordinary binary. The wscript of this project itself can be used as a simple example. The docstring of the tool provides more detailed documentation.