Commit 66bf4462 authored by Greg Ward's avatar Greg Ward

Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.

parent 01ae9eb2
...@@ -304,7 +304,7 @@ class FancyGetopt: ...@@ -304,7 +304,7 @@ class FancyGetopt:
return self.option_order return self.option_order
def generate_help (header=None): def generate_help (self, header=None):
"""Generate help text (a list of strings, one per suggested line of """Generate help text (a list of strings, one per suggested line of
output) from the option table for this FancyGetopt object.""" output) from the option table for this FancyGetopt object."""
...@@ -388,7 +388,7 @@ class FancyGetopt: ...@@ -388,7 +388,7 @@ class FancyGetopt:
# generate_help () # generate_help ()
def print_help (self, file=None, header=None): def print_help (self, header=None, file=None):
if file is None: if file is None:
file = sys.stdout file = sys.stdout
for line in self.generate_help (header): for line in self.generate_help (header):
......
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