Message217153
This patch adds a ReGroupHelpFormatter class, which regroups positional arguments in the usage line as discussed before. It builds on the reworked usage formatter in bugs/python.org/issue11874 (which keeps usage as a list longer).
For a complicate parser, usage may look like:
usage: regp [-h] foo [arg1 [arg2 [arg3 [arg3 ...] [arg4]]]] |
|
Date |
User |
Action |
Args |
2014-04-25 05:22:18 | paul.j3 | set | recipients:
+ paul.j3, bethard, pwil3058, petri.lehtinen |
2014-04-25 05:22:18 | paul.j3 | set | messageid: <1398403338.02.0.241397442203.issue11708@psf.upfronthosting.co.za> |
2014-04-25 05:22:17 | paul.j3 | link | issue11708 messages |
2014-04-25 05:22:17 | paul.j3 | create | |
|