Track extra arg to option_table to all uses of it

This commit is contained in:
Jeremy Hylton 2002-06-04 21:10:35 +00:00
parent 6b3996b2b9
commit 40ebbeff23
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ class FancyGetopt:
else: else:
lines = ['Option summary:'] lines = ['Option summary:']
for (long,short,help) in self.option_table: for option in self.option_table:
long, short, help = option_table[:3]
text = wrap_text(help, text_width) text = wrap_text(help, text_width)
if long[-1] == '=': if long[-1] == '=':
long = long[0:-1] long = long[0:-1]