]> granicus.if.org Git - python/commitdiff
Fixed so we print more than just the first line of help for options with
authorGreg Ward <gward@python.net>
Thu, 8 Jun 2000 00:35:33 +0000 (00:35 +0000)
committerGreg Ward <gward@python.net>
Thu, 8 Jun 2000 00:35:33 +0000 (00:35 +0000)
a short form and text that wraps onto multiple lines.

Lib/distutils/fancy_getopt.py

index a593354c9d1483ef659a511071b35056a175d9f8..6adfc819c2df5c70c3e0f7d1823d61509692eaca 100644 (file)
@@ -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