[Zodb-checkins] CVS: ZODB3/zdaemon - zdctl.py:1.16
Guido van Rossum
guido@python.org
Thu, 16 Jan 2003 23:15:40 -0500
Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv15442
Modified Files:
zdctl.py
Log Message:
Document -p; require program.
=== ZODB3/zdaemon/zdctl.py 1.15 => 1.16 ===
--- ZODB3/zdaemon/zdctl.py:1.15 Thu Jan 16 21:01:26 2003
+++ ZODB3/zdaemon/zdctl.py Thu Jan 16 23:15:37 2003
@@ -14,10 +14,11 @@
##############################################################################
"""zdctl -- control an application run by zdaemon.
-Usage: python zdctl.py -C config-file [action [arguments]]
+Usage: python zdctl.py [-C URL] [-p PROGRAM] [action [arguments]]
Options:
-C/--configuration URL -- configuration file or URL
+-p/--program PROGRAM -- the program to run
action [arguments] -- see below
If no action is specified on the command line, a "shell" interpreting
@@ -78,7 +79,9 @@
def __init__(self):
zdoptions.ZDOptions.__init__(self)
- self.add("program", "zdctl.program", "p:", "program=", string_list)
+ self.add("program", "zdctl.program", "p:", "program=",
+ handler=string_list,
+ required="no program specified; use -p or -C")
class ZDCmd(cmd.Cmd):