From: R David Murray Date: Thu, 5 May 2011 01:05:52 +0000 (-0400) Subject: #8158: add missing 'description' description to optparse docstring. X-Git-Tag: v2.7.2rc1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a436e713b6fe188138b51eccbc4212ad4781b459;p=python #8158: add missing 'description' description to optparse docstring. --- diff --git a/Lib/optparse.py b/Lib/optparse.py index 87d7737423..731a2bb5ed 100644 --- a/Lib/optparse.py +++ b/Lib/optparse.py @@ -1131,6 +1131,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