[issue11695] Improve argparse usage/help customization
paul j3
report at bugs.python.org
Fri Jun 20 23:11:57 CEST 2014
paul j3 added the comment:
This patch has a 'custom_help' which, with a default template, is compatible with 'format_help' (i.e. it passes test_argparse). It also handles the sample template in this issue.
Due to long line wrapping issues, the 'Usage: ' string the test template has to be entered separately as a usage 'prefix'. Indenting of long wrapped values (like usage) is correct only if the '%(...)s' string is at the start of a line.
I see this as a test-of-concept patch.
----------
keywords: +patch
Added file: http://bugs.python.org/file35713/issue11695_1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11695>
_______________________________________
More information about the Python-bugs-list
mailing list