[issue42966] argparse: customizable help formatter

paul j3 report at bugs.python.org
Fri Jan 22 14:42:38 EST 2021


paul j3 <ajipanca at gmail.com> added the comment:

Years ago I proposed a `format_wrapper`, a Format class factory

https://bugs.python.org/issue12806#msg218395

also

https://bugs.python.org/issue39809

There I show that the formatter may be lambda

    formatter = lambda prog: argparse.HelpFormatter(prog, width=100)

The need for improving help customization has been around for a long time:

https://bugs.python.org/issue11695
Improve argparse usage/help customization

https://bugs.python.org/issue32123
Make the API of argparse.HelpFormatter public

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42966>
_______________________________________


More information about the Python-bugs-list mailing list