[issue42023] Argparse: Add a "display" arg
paul j3
report at bugs.python.org
Wed Oct 14 14:23:34 EDT 2020
paul j3 <ajipanca at gmail.com> added the comment:
That method could be customized in a HelpFormatter subclass. There already are several subclasses (documented), and writing your own is allowed, if not actually encouraged.
https://docs.python.org/3/library/argparse.html#formatter-class
Adding an extra parameter to 'add_argument', and passing that on through the Action class (and subclasses) is, potentially, a bigger task.
So if you can get by with just customizing _format_action_invocation, there's no need for further action here.
I'll look for some examples, here or on SO, of customizing this method.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42023>
_______________________________________
More information about the Python-bugs-list
mailing list