diff options
| author | R David Murray <rdmurray@bitdance.com> | 2011-05-05 01:05:52 (GMT) |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2011-05-05 01:05:52 (GMT) |
| commit | a436e713b6fe188138b51eccbc4212ad4781b459 (patch) | |
| tree | 48619fd70c0e135e505f3da9c13abf4d91715693 | |
| parent | 28a8e9637888de3c254e624576d2ecc54a8f2ae6 (diff) | |
| download | cpython-a436e713b6fe188138b51eccbc4212ad4781b459.zip cpython-a436e713b6fe188138b51eccbc4212ad4781b459.tar.gz cpython-a436e713b6fe188138b51eccbc4212ad4781b459.tar.bz2 | |
#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 87d7737..731a2bb 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 |
