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.
This commit is contained in:
Greg Ward 2000-06-08 00:35:33 +00:00
parent e0c8c2fd16
commit 373dbfa723
1 changed files with 3 additions and 3 deletions

View 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