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

document argparse's help=SUPPRESS #53595

Closed
bethard mannequin opened this issue Jul 23, 2010 · 2 comments
Closed

document argparse's help=SUPPRESS #53595

bethard mannequin opened this issue Jul 23, 2010 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@bethard
Copy link
Mannequin

bethard mannequin commented Jul 23, 2010

BPO 9349
Nosy @sandrotosi

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 2012-01-03.17:41:39.246>
created_at = <Date 2010-07-23.13:46:35.058>
labels = ['docs']
title = "document argparse's help=SUPPRESS"
updated_at = <Date 2012-01-03.17:41:39.245>
user = 'https://bugs.python.org/bethard'

bugs.python.org fields:

activity = <Date 2012-01-03.17:41:39.245>
actor = 'sandro.tosi'
assignee = 'docs@python'
closed = True
closed_date = <Date 2012-01-03.17:41:39.246>
closer = 'sandro.tosi'
components = ['Documentation']
creation = <Date 2010-07-23.13:46:35.058>
creator = 'bethard'
dependencies = []
files = []
hgrepos = []
issue_num = 9349
keywords = []
message_count = 2.0
messages = ['111320', '150520']
nosy_count = 4.0
nosy_names = ['bethard', 'sandro.tosi', 'docs@python', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue9349'
versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

@bethard
Copy link
Mannequin Author

bethard mannequin commented Jul 23, 2010

Argparse supports silencing help for certain options using SUPPRESS.

>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', help=argparse.SUPPRESS)
>>> parser.print_help()
usage: [-h]

optional arguments:
-h, --help show this help message and exit

This should be documented in the description of help=

http://docs.python.org/library/argparse.html#help

@bethard bethard mannequin assigned docspython Jul 23, 2010
@bethard bethard mannequin added the docs Documentation in the Doc dir label Jul 23, 2010
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jan 3, 2012

New changeset 572ddf2770bc by Sandro Tosi in branch '3.2':
Issue bpo-9349: add argparse.SUPPRESS to help doc
http://hg.python.org/cpython/rev/572ddf2770bc

New changeset 17b7b856cbe8 by Sandro Tosi in branch '2.7':
Issue bpo-9349: add argparse.SUPPRESS to help doc
http://hg.python.org/cpython/rev/17b7b856cbe8

@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