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.

classification
Title: Incorrect docs for optparse OptionParser add_help_option
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: forest, georg.brandl
Priority: normal Keywords:

Created on 2007-06-23 18:16 by forest, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg32384 - (view) Author: Forest (forest) Date: 2007-06-23 18:16
http://www.python.org/doc/2.5/lib/optparse-creating-parser.html

The docs say:

"add_help_option (default: True) If true, optparse will add a help option (with option strings "-h" and "-help") to the parser."

In fact, it adds option strings "-h" and "--help".  Note the additional '-' character as compared to the documentation.
msg55226 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-23 21:48
This is finally fixed with the new sources and toolset.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45123
2007-08-23 21:48:17georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg55226
nosy: + georg.brandl
2007-06-23 18:16:54forestcreate