summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-05-05 01:07:33 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-05-05 01:07:33 (GMT)
commit3ef4419dc3c44e65598307857a13c39cd15c60e1 (patch)
treee1655549ad8528aadce172ae685346eca214982e /Lib
parenteda70b81d3346f1831efe0f1b9553ef9f1bb4ca3 (diff)
parentfc5ed800d82a1d2ceaee0121cdffd9d191bfd7ff (diff)
downloadcpython-3ef4419dc3c44e65598307857a13c39cd15c60e1.zip
cpython-3ef4419dc3c44e65598307857a13c39cd15c60e1.tar.gz
cpython-3ef4419dc3c44e65598307857a13c39cd15c60e1.tar.bz2
Merge #8158: add missing 'description' description to optparse docstring.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/optparse.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py
index 3eb652a..cbd019a 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -1120,6 +1120,11 @@ class OptionParser (OptionContainer):
prog : string
the name of the current program (to override
os.path.basename(sys.argv[0])).
+ description : string
+ A paragraph of text giving a brief overview of your program.
+ optparse reformats this paragraph to fit the current terminal
+ width and prints it when the user requests help (after usage,
+ but before the list of options).
epilog : string
paragraph of help text to print after option help