]> granicus.if.org Git - python/commitdiff
Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.
authorGreg Ward <gward@python.net>
Sun, 23 Apr 2000 02:50:45 +0000 (02:50 +0000)
committerGreg Ward <gward@python.net>
Sun, 23 Apr 2000 02:50:45 +0000 (02:50 +0000)
Lib/distutils/fancy_getopt.py

index 629da29eef50ea862838691b1cf663f45eda27cd..39450e80791843fb4358bdc7869b6fbfd0fc7686 100644 (file)
@@ -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):