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

Serhiy Storchaka report at bugs.python.org
Wed Apr 19 07:21:13 EDT 2017


Serhiy Storchaka added the comment:

Your example just prints a man page. It doesn't do anything useful besides this.

I'm asking how argparse can do two incompatible things: provide a command-line interface for an end user and generate a man page in a build script.

Do you mean that the programmer should create a separate script for generating a man page and copy a part of the code from the main program? This workflow should be documented, with examples. And it is not applicable for simple one-file scripts.

----------

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


More information about the Python-bugs-list mailing list