[issue45110] argparse repeats itself when formatting help metavars

Forest report at bugs.python.org
Mon Sep 6 02:46:51 EDT 2021


Forest <forestix at sonic.net> added the comment:

>Subclassing a help formatter is preferred because it minimizes the chance of 
>hurting existing users.

Fair enough.

Whatever the approach, I hope argparse can be made to support this through a
simple, documented interface.  I had to grovel through standard library code
to figure out what to override and what to duplicate in order to get the
output I want.  That seems like a needlessly high barrier for such a common
(and apparently oft-requested) format.

----------

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


More information about the Python-bugs-list mailing list