This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients Endre, berker.peksag, xiang.zhang
Date 2016-05-04.16:23:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462379029.61.0.0931683686113.issue26952@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-04 16:23:49xiang.zhangsetrecipients: + xiang.zhang, berker.peksag, Endre
2016-05-04 16:23:49xiang.zhangsetmessageid: <1462379029.61.0.0931683686113.issue26952@psf.upfronthosting.co.za>
2016-05-04 16:23:49xiang.zhanglinkissue26952 messages
2016-05-04 16:23:49xiang.zhangcreate