[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-14 Thread Christoph Stahl
New submission from Christoph Stahl: When creating nested mutually exclusive groups, all closing brackets except one are omitted. Example: parser = ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument('-a') group.add_argument(&#

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-14 Thread Christoph Stahl
Changes by Christoph Stahl : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-15 Thread Christoph Stahl
Christoph Stahl added the comment: Hi, I thought a bit about the problem and came up with the following: The | in the usage is de facto an XOR operator. Exactly one of the options can be used. The XOR operator has the associative property, meaning: (A XOR B) XOR C = A XOR (B XOR C) So