Author paul.j3
Recipients paul.j3, rrt
Date 2020-10-17.00:34:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602894883.17.0.336615084247.issue41854@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-10-17 00:34:43paul.j3setrecipients: + paul.j3, rrt
2020-10-17 00:34:43paul.j3setmessageid: <1602894883.17.0.336615084247.issue41854@roundup.psfhosted.org>
2020-10-17 00:34:43paul.j3linkissue41854 messages
2020-10-17 00:34:43paul.j3create