Message378644
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. |
|
Date |
User |
Action |
Args |
2020-10-14 18:23:34 | paul.j3 | set | recipients:
+ paul.j3, rhettinger, ThatXliner |
2020-10-14 18:23:34 | paul.j3 | set | messageid: <1602699814.01.0.293181090874.issue42023@roundup.psfhosted.org> |
2020-10-14 18:23:34 | paul.j3 | link | issue42023 messages |
2020-10-14 18:23:33 | paul.j3 | create | |
|