paul j3 added the comment: The attached file implements a solution using a subclassed ArgumentParser and a .add_titled_mutually_exclusive_group method (two versions).
I changed the test conditions a bit, removing a blank line, and making the usage 'exclusive'. ---------- Added file: http://bugs.python.org/file34926/test_argparse_mutex_with_title1.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17218> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com