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(
Changes by Christoph Stahl :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue29553>
___
___
Python-bugs-list mailing list
Unsubscrib
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