[issue34744] New %(flag)s format specifier for argparse.add_argument help string

paul j3 report at bugs.python.org
Wed Sep 26 23:26:29 EDT 2018


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

The preferred way of adding new features to the Formatter is to subclass it, and modify one or more methods.  That's what the existing alternative formatters do.

A user can easily create such a subclass, and use it with their own parser, without having to modify the stock `argparse.py` file.

Given that flexibility, adding new features (as opposed to bug fixes) to the help formatter should have a low priority.

----------

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


More information about the Python-bugs-list mailing list