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 paul.j3
Recipients paul.j3, v+python
Date 2014-06-08.01:39:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
The ''_expand_help' method formats one action (argument) at a time, so it could issue an error message that includes that action's name.

The disconnect that you noticed arises because your bad 'help' parameter wasn't tested until is was used in a 'print_help'.

http://bugs.python.org/issue9849 asks for better testing of `nargs` (and `metavar`) values.  In the proposed patch, 'add_argument' creates a temporary HelpFormatter and tries to format a relevant portion of the help.  I suppose that test could be extended to test the 'help' parameter as well.
History
Date User Action Args
2014-06-08 01:39:27paul.j3setrecipients: + paul.j3, v+python
2014-06-08 01:39:27paul.j3setmessageid: <[email protected]>
2014-06-08 01:39:27paul.j3linkissue21666 messages
2014-06-08 01:39:26paul.j3create