diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-05-04 21:05:52 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-05-04 21:05:52 -0400 |
commit | 23078f32ebe64c9e0f58c92cc98d6e957c9aa4d3 (patch) | |
tree | 880b8317d292a0198ab12929d5b6e9e61d467f71 | |
parent | cda8be2816890a66990b0b2351214ef192571ef9 (diff) | |
download | cpython-23078f32ebe64c9e0f58c92cc98d6e957c9aa4d3.tar.gz |
#8158: add missing 'description' description to optparse docstring.
-rw-r--r-- | Lib/optparse.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |