Message287776
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('-b')
group2 = group.add_mutually_exclusive_group()
group2.add_argument('-c')
group2.add_argument('-d')
group3 = group2.add_mutually_exclusive_group()
group3.add_argument('-e')
group3.add_argument('-f')
prints a usage line of:
usage: test.py [-h] [-a A | -b B | [-c C | -d D | [-e E | -f F]
it should print something like:
usage: test.py [-h] [-a A | -b B | [-c C | -d D | [-e E | -f F]]] |
|
Date |
User |
Action |
Args |
2017-02-14 14:59:53 | christofsteel | set | recipients:
+ christofsteel |
2017-02-14 14:59:53 | christofsteel | set | messageid: <1487084393.73.0.392893421751.issue29553@psf.upfronthosting.co.za> |
2017-02-14 14:59:53 | christofsteel | link | issue29553 messages |
2017-02-14 14:59:53 | christofsteel | create | |
|