Message377470
A workaround to help users for now is:
>>> parser.add_argument('args', metavar='...', nargs=argparse.REMAINDER)
as then at least the help entry corresponds to the synopsis:
positional arguments:
command
...
And with a `help` string, this can be clarified further, e.g.:
>>> parser.add_argument('args', metavar='...', nargs=argparse.REMAINDER, help='arguments to the command') |
|
Date |
User |
Action |
Args |
2020-09-24 23:42:31 | rrt | set | recipients:
+ rrt |
2020-09-24 23:42:31 | rrt | set | messageid: <1600990951.1.0.564601469106.issue41856@roundup.psfhosted.org> |
2020-09-24 23:42:31 | rrt | link | issue41856 messages |
2020-09-24 23:42:31 | rrt | create | |
|