summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-05-05 01:08:07 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-05-05 01:08:07 (GMT)
commit9cc432d93799652cb21ac4473d6875ed3de01937 (patch)
treed3867a62b7cbcda59a8685bec3e1c13de3495401 /Lib
parent3f064693bb628dde15b82d0216da9d03f5281fd3 (diff)
parent3ef4419dc3c44e65598307857a13c39cd15c60e1 (diff)
downloadcpython-9cc432d93799652cb21ac4473d6875ed3de01937.zip
cpython-9cc432d93799652cb21ac4473d6875ed3de01937.tar.gz
cpython-9cc432d93799652cb21ac4473d6875ed3de01937.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 c207713..b09a13c 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -1126,6 +1126,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