Xiang Zhang added the comment: I agree with Berker. Even without any exceptions, the help message given is not what add_argument_group and add_mutually_exclusive_group intend.
You can see usage: argparse_test.py [-h] [--foo] -u URL -p PROJECT [--dump] --mergeInput MERGEINPUT [--removeDisabled] -c CHECKERS Sets the checkers of a klocwork project optional arguments: -h, --help show this help message and exit --foo -c CHECKERS, --checkers CHECKERS File which lists the checkers to be enabled. There is not group name and still optional arguments. And the command line does not show exclusive. I believe they are not designed to work like this. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26952> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com