Author paul.j3
Recipients bethard, louielu, paul.j3, pitrou, talkless, wolma
Date 2017-12-06.18:28:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512584898.53.0.213398074469.issue18943@psf.upfronthosting.co.za>
In-reply-to
Content
That's not how flagged (optionals) arguments work.

The default value is used if the flag is not provided at all.  One of your arguments is a 'store_true'.  Its default value if False, which is changed to True if the '--device-get-capabilities' flag is provided.

"nargs='?'" provides a third option, assigning the 'const' value if the flag is used without an argument.

In any case your problem isn't with a required mutually exclusive group (defaults or not).  It has to do with understanding optionals and their defaults.
History
Date User Action Args
2017-12-06 18:28:18paul.j3setrecipients: + paul.j3, pitrou, bethard, wolma, louielu, talkless
2017-12-06 18:28:18paul.j3setmessageid: <1512584898.53.0.213398074469.issue18943@psf.upfronthosting.co.za>
2017-12-06 18:28:18paul.j3linkissue18943 messages
2017-12-06 18:28:18paul.j3create