Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (2m)  pkgsrc-2024Q1 (9d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (89d)  pkgsrc-2023Q3 (168d) 

2024-05-27 11:21:49 UTC Now

2023-06-01 04:30:44 UTC MAIN commitmail json YAML

devel/py-argparse-manpage: import py-argparse-manpage-4.3

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.

(wiz)