Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect docs for optparse OptionParser add_help_option #45123

Closed
forest mannequin opened this issue Jun 23, 2007 · 2 comments
Closed

Incorrect docs for optparse OptionParser add_help_option #45123

forest mannequin opened this issue Jun 23, 2007 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@forest
Copy link
Mannequin

forest mannequin commented Jun 23, 2007

BPO 1742164
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-08-23.21:48:17.098>
created_at = <Date 2007-06-23.18:16:54.000>
labels = ['docs']
title = 'Incorrect docs for optparse OptionParser add_help_option'
updated_at = <Date 2007-08-23.21:48:17.096>
user = 'https://bugs.python.org/forest'

bugs.python.org fields:

activity = <Date 2007-08-23.21:48:17.096>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2007-08-23.21:48:17.098>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2007-06-23.18:16:54.000>
creator = 'forest'
dependencies = []
files = []
hgrepos = []
issue_num = 1742164
keywords = []
message_count = 2.0
messages = ['32384', '55226']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'forest']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1742164'
versions = []

@forest
Copy link
Mannequin Author

forest mannequin commented Jun 23, 2007

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.

@forest forest mannequin added docs Documentation in the Doc dir labels Jun 23, 2007
@birkenfeld
Copy link
Member

This is finally fixed with the new sources and toolset.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant