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

Skip to content

Commit fc5ed80

Browse files
committed
#8158: add missing 'description' description to optparse docstring.
1 parent f16898b commit fc5ed80

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
@@ -1120,6 +1120,11 @@ class OptionParser (OptionContainer):
11201120
prog : string
11211121
the name of the current program (to override
11221122
os.path.basename(sys.argv[0])).
1123+
description : string
1124+
A paragraph of text giving a brief overview of your program.
1125+
optparse reformats this paragraph to fit the current terminal
1126+
width and prints it when the user requests help (after usage,
1127+
but before the list of options).
11231128
epilog : string
11241129
paragraph of help text to print after option help
11251130

0 commit comments

Comments
 (0)