From fc5ed800d82a1d2ceaee0121cdffd9d191bfd7ff Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 4 May 2011 21:06:57 -0400 Subject: [PATCH] #8158: add missing 'description' description to optparse docstring. --- Lib/optparse.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/optparse.py b/Lib/optparse.py index 3eb652a6fe9..cbd019afb7d 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