Message307762
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. |
|
Date |
User |
Action |
Args |
2017-12-06 18:28:18 | paul.j3 | set | recipients:
+ paul.j3, pitrou, bethard, wolma, louielu, talkless |
2017-12-06 18:28:18 | paul.j3 | set | messageid: <1512584898.53.0.213398074469.issue18943@psf.upfronthosting.co.za> |
2017-12-06 18:28:18 | paul.j3 | link | issue18943 messages |
2017-12-06 18:28:18 | paul.j3 | create | |
|