[issue17218] support title and description in argparse add_mutually_exclusive_group

paul j3 report at bugs.python.org
Wed Apr 16 22:03:49 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue17218>
_______________________________________


More information about the Python-bugs-list mailing list