summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/fancy_getopt.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-08 00:35:33 (GMT)
committerGreg Ward <gward@python.net>2000-06-08 00:35:33 (GMT)
commit373dbfa723e79d33c97007194f4a674afedd5c96 (patch)
tree0ce1fde5f3aaab1de46a9aebef02bef432aa1428 /Lib/distutils/fancy_getopt.py
parente0c8c2fd16c3143c904d74ea4d77bc5dcb001078 (diff)
downloadcpython-373dbfa723e79d33c97007194f4a674afedd5c96.zip
cpython-373dbfa723e79d33c97007194f4a674afedd5c96.tar.gz
cpython-373dbfa723e79d33c97007194f4a674afedd5c96.tar.bz2
Fixed so we print more than just the first line of help for options with
a short form and text that wraps onto multiple lines.
Diffstat (limited to 'Lib/distutils/fancy_getopt.py')
-rw-r--r--Lib/distutils/fancy_getopt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py
index a593354..6adfc81 100644
--- a/Lib/distutils/fancy_getopt.py
+++ b/Lib/distutils/fancy_getopt.py
@@ -369,9 +369,6 @@ class FancyGetopt:
else:
lines.append (" --%-*s " % (max_opt, long))
- for l in text[1:]:
- lines.append (big_indent + l)
-
# Case 2: we have a short option, so we have to include it
# just after the long option
else:
@@ -382,6 +379,9 @@ class FancyGetopt:
else:
lines.append (" --%-*s" % opt_names)
+ for l in text[1:]:
+ lines.append (big_indent + l)
+
# for self.option_table
return lines