[Twisted-Python] t.p.usage patch
Joe Halliwell
joeh at dai.ed.ac.uk
Mon Sep 23 12:24:29 EDT 2002
Hi,
Quick patch for t.p.usage to (self-)document the builtin "--help" flag.
Cheers,
Joe
*** usage.py Mon Sep 23 17:12:53 2002
--- usage.py.patched Mon Sep 23 17:20:35 2002
*************** class Options(UserDict.UserDict):
*** 149,154 ****
--- 149,155 ----
raise AttributeError("%s instance has no attribute '%s'" %
(self.__class__, attr))
def opt_help(self):
+ """Display this help and exit."""
print self.__str__()
sys.exit(0)
More information about the Twisted-Python
mailing list