]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#8158: add missing 'description' description to optparse docstring.
authorR David Murray <rdmurray@bitdance.com>
Thu, 5 May 2011 01:06:57 +0000 (21:06 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 5 May 2011 01:06:57 +0000 (21:06 -0400)
Lib/optparse.py

index 3eb652a6fe99eb6d6c9d977d46b19b7d99ca2fbd..cbd019afb7d3afbfba5ad465a153c02cc2f54cb0 100644 (file)
@@ -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