[Distutils] --help not working in 0.8.1 (w/patch)
Harry Henry Gebel
hgebel@inet.net
Sat, 22 Apr 2000 15:02:26 -0400
--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The --help argument is not working in Distutils v0.8.1 . The problem is
caused by two things: FancyGetopt.generate_help() does not have a self
argument and FancyGetopt.print_help() places the file argument first, but
all the functions that call it seem to expect the header argument to be
first. A patch is attached that fixes the problem.
--
Harry Henry Gebel, Senior Developer, Landon House SBS
West Dover Hundred, Delaware
PyNcurses: python binding for ncurses http://pyncurses.sourceforge.net
--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="distutils-help.patch"
--- fancy_getopt.py.old Sat Apr 22 14:49:01 2000
+++ fancy_getopt.py Sat Apr 22 14:20:50 2000
@@ -304,7 +304,7 @@
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 @@
# 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):
--2oS5YaxWCcQjTEyO--