summaryrefslogtreecommitdiff
path: root/fancy_getopt.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-23 02:50:45 +0000
committerGreg Ward <gward@python.net>2000-04-23 02:50:45 +0000
commitcc06f983649b572614316eeaf64846a5dcecd5bf (patch)
treef31966349946400edde90438f56ecde237f3ad93 /fancy_getopt.py
parent32155114f6d362c883a9d0f7e337ab91bf7a2187 (diff)
downloadpython-setuptools-git-cc06f983649b572614316eeaf64846a5dcecd5bf.tar.gz
Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.
Diffstat (limited to 'fancy_getopt.py')
-rw-r--r--fancy_getopt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fancy_getopt.py b/fancy_getopt.py
index 629da29e..39450e80 100644
--- a/fancy_getopt.py
+++ b/fancy_getopt.py
@@ -304,7 +304,7 @@ class FancyGetopt:
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
output) from the option table for this FancyGetopt object."""
@@ -388,7 +388,7 @@ class FancyGetopt:
# generate_help ()
- def print_help (self, file=None, header=None):
+ def print_help (self, header=None, file=None):
if file is None:
file = sys.stdout
for line in self.generate_help (header):