FreeBSD.software
Home/devel/py311-argparse-manpage

py311-argparse-manpage

4.6devel

Build manual page from python's ArgumentParser object

Avoid documenting your Python script arguments on two places! This is typically done in an argparse.ArgumentParser help configuration (help=, description=, etc.), and also in a manually crafted manual page. The good thing about an ArgumentParser objects is that it actually provides a traversable "tree-like" structure, with all the necessary info needed to automatically generate documentation, for example in a groff typesetting system (manual pages). And this is where this project can help. There are two supported ways to generate the manual, either script it using the installed command argparse-manpage, or via setup.py build automation (with a slight bonus of automatic manual page installation with setup.py install).

$pkg install py311-argparse-manpage
github.com/praiskup/argparse-manpage
Origin
devel/py-argparse-manpage
Size
201KiB
License
APACHE20
Maintainer
sunpoet@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)