[Python-checkins] CVS: distutils/distutils fancy_getopt.py,1.13,1.14

Greg Ward python-dev@python.org
Wed, 7 Jun 2000 17:35:35 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17185

Modified Files:
	fancy_getopt.py 
Log Message:
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.

Index: fancy_getopt.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/fancy_getopt.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** fancy_getopt.py	2000/05/23 03:53:10	1.13
--- fancy_getopt.py	2000/06/08 00:35:33	1.14
***************
*** 11,15 ****
  # created 1999/03/03, Greg Ward
  
! __revision__ = "$Id: fancy_getopt.py,v 1.13 2000/05/23 03:53:10 gward Exp $"
  
  import sys, string, re
--- 11,15 ----
  # created 1999/03/03, Greg Ward
  
! __revision__ = "$Id: fancy_getopt.py,v 1.14 2000/06/08 00:35:33 gward Exp $"
  
  import sys, string, re
***************
*** 370,376 ****
                      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
--- 370,373 ----
***************
*** 382,385 ****
--- 379,385 ----
                  else:
                      lines.append ("  --%-*s" % opt_names)
+ 
+             for l in text[1:]:
+                 lines.append (big_indent + l)
  
          # for self.option_table