praiskup / argparse-manpage

Automatically build man-pages for your Python project
Apache License 2.0
41 stars 22 forks source link

Provide `python-build-manpage` script #6

Closed praiskup closed 6 years ago

praiskup commented 6 years ago

The script should live under /usr/bin and accept the same arguments as [build_manpages.manpages] items:

[build_manpages]
manpages =
    man/foo.1:object=parser:pyfile=bin/foo.py
    man/bar.1:function=get_parser:pyfile=bin/bar

So e.g. python-build-manpage --output man/foo.1 --obj-type={object,function} --object=OBJECT --located-in={module,pyfile} --location=LOCATION.

Having this (one day) would give us good motivation to move #3 forward.