[Zope3-checkins] CVS: Zope/lib/python/zdaemon - zdrun.py:1.23

Fred L. Drake, Jr. fred at zope.com
Tue May 4 15:04:31 EDT 2004


Update of /cvs-repository/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv12087

Modified Files:
	zdrun.py 
Log Message:
see collector issue 1310:
- fix help text *correctly*
- add long option to correspond to -S
- add missing help text for -S/--schema


=== Zope/lib/python/zdaemon/zdrun.py 1.22 => 1.23 ===
--- Zope/lib/python/zdaemon/zdrun.py:1.22	Mon Apr 12 15:14:14 2004
+++ Zope/lib/python/zdaemon/zdrun.py	Tue May  4 15:04:30 2004
@@ -17,7 +17,8 @@
 Usage: python zrdun.py [zrdun-options] program [program-arguments]
 
 Options:
--C/--configuration URL -- configuration file or URL
+-C/--configure URL -- configuration file or URL
+-S/--schema XML Schema -- XML schema for configuration file
 -b/--backoff-limit SECONDS -- set backoff limit to SECONDS (default 10)
 -d/--daemon -- run as a proper daemon; fork a subprocess, setsid(), etc.
 -f/--forever -- run forever (by default, exit when backoff limit is exceeded)
@@ -93,7 +94,8 @@
 
     def __init__(self):
         RunnerOptions.__init__(self)
-        self.add("schemafile", short="S:", default="schema.xml",
+        self.add("schemafile", short="S:", long="schema=",
+                 default="schema.xml",
                  handler=self.set_schemafile)
 
     def set_schemafile(self, file):




More information about the Zope3-Checkins mailing list