[issue14102] argparse: add ability to create a man page

Éric Araujo report at bugs.python.org
Fri Feb 24 05:50:59 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

Are you aware of help2man?  It can transmogrify the output of “your-program-that-uses-argparse --help” to a man page.  Another solution is to use docutils’ rst2man to convert some documentation file to the man format.

On the other hand, this blog post contains code implementing a custom optparse formatter for man pages, which could probably be adapted for argparse easily, so it does not look hard to implement.  (Note that the code has no licensing information.)

Steven, what do you think?  Too specialized for the stdlib or small, useful new feature?

----------
components: +Library (Lib) -None
nosy: +bethard, eric.araujo
title: argparser should create a man page for me. -> argparse: add ability to create a man page
versions: +Python 3.3 -Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14102>
_______________________________________


More information about the Python-bugs-list mailing list