Éric Araujo <mer...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com