paul j3 <ajipa...@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue18943> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com