Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cc432d

Browse files
committed
Merge #8158: add missing 'description' description to optparse docstring.
2 parents 3f06469 + 3ef4419 commit 9cc432d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/optparse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,11 @@ class OptionParser (OptionContainer):
11261126
prog : string
11271127
the name of the current program (to override
11281128
os.path.basename(sys.argv[0])).
1129+
description : string
1130+
A paragraph of text giving a brief overview of your program.
1131+
optparse reformats this paragraph to fit the current terminal
1132+
width and prints it when the user requests help (after usage,
1133+
but before the list of options).
11291134
epilog : string
11301135
paragraph of help text to print after option help
11311136

0 commit comments

Comments
 (0)