I am developing a python CLI tool (using optparse in python2.6, but hope to switch soon to python2.7) and I am about to write the man page. I have some experience on generating dynamic man pages by:
- creating a dedicated method that composes a string in pod format and writes it to a file
- executing the pod2man command to generate data in groff format to be passed to the man command
I would also like to generate wiki pages with the same content as the man page (with pod I can generate html through pod2html, and probably the html can be easily translated into wiki format). Has someone a better idea/flow on how to do this?
One thing I have found as interesting is on this link: Creating Man Pages Using optparse and distutils