Message378795
Give the positional a non-none default:
e.g.
group.add_argument('args', metavar='ARGUMENT', nargs='*', default=[],
help='arguments to PROGRAM')
Since a '*' or '?' positional works with an empty list of arguments, it is "always seen". It requires some special handling to allow it to work in the mutually exclusive context. It's a tricky piece of code that might not be well documented (if at all). |
|
Date |
User |
Action |
Args |
2020-10-17 00:34:43 | paul.j3 | set | recipients:
+ paul.j3, rrt |
2020-10-17 00:34:43 | paul.j3 | set | messageid: <1602894883.17.0.336615084247.issue41854@roundup.psfhosted.org> |
2020-10-17 00:34:43 | paul.j3 | link | issue41854 messages |
2020-10-17 00:34:43 | paul.j3 | create | |
|