Kaydet (Commit) 373dbfa7 authored tarafından Greg Ward's avatar Greg Ward

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.
üst e0c8c2fd
...@@ -369,9 +369,6 @@ class FancyGetopt: ...@@ -369,9 +369,6 @@ class FancyGetopt:
else: else:
lines.append (" --%-*s " % (max_opt, long)) 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 # Case 2: we have a short option, so we have to include it
# just after the long option # just after the long option
else: else:
...@@ -382,6 +379,9 @@ class FancyGetopt: ...@@ -382,6 +379,9 @@ class FancyGetopt:
else: else:
lines.append (" --%-*s" % opt_names) lines.append (" --%-*s" % opt_names)
for l in text[1:]:
lines.append (big_indent + l)
# for self.option_table # for self.option_table
return lines return lines
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment