[issue11588] Add "necessarily inclusive" groups to argparse
paul j3
report at bugs.python.org
Tue Apr 8 22:53:05 CEST 2014
paul j3 added the comment:
http://stackoverflow.com/questions/22929087
A question that could be addressed with this patch(es)
In a subparser:
I have 4 arguments: -g, -wid, -w1, and -w2.
-w1 and -w2 always appear together
-wid and (-w1 -w2) are mutually exclusive, but one or the other is required
-g is optional; if it is not specified only (-w1 -w2) can appear, but not -wid
The `g` case does not fit either the inclusive or exclusive group patterns.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11588>
_______________________________________
More information about the Python-bugs-list
mailing list