Commit e99aa8b5 authored by Chris Withers's avatar Chris Withers

make zopectl -h work once the new zdaemon release is used.

parent 54a6a872
...@@ -56,12 +56,14 @@ def string_list(arg): ...@@ -56,12 +56,14 @@ def string_list(arg):
return arg.split() return arg.split()
class ZopeCtlOptions(ZDOptions): class ZopeCtlOptions(ZDOptions):
"""Zope controller options. # Zope controller options.
#
# After initialization, this should look very much like a
# zdaemon.zdctl.ZDCtlOptions instance. Many of the attributes are
# initialized from different sources, however.
After initialization, this should look very much like a __doc__ = __doc__
zdaemon.zdctl.ZDCtlOptions instance. Many of the attributes are
initialized from different sources, however.
"""
positional_args_allowed = 1 positional_args_allowed = 1
program = "zopectl" program = "zopectl"
...@@ -73,7 +75,7 @@ class ZopeCtlOptions(ZDOptions): ...@@ -73,7 +75,7 @@ class ZopeCtlOptions(ZDOptions):
# same logging for zdctl as for the Zope appserver. There still # same logging for zdctl as for the Zope appserver. There still
# needs to be a way to set a logfile for zdctl. # needs to be a way to set a logfile for zdctl.
logsectionname = None logsectionname = None
def __init__(self): def __init__(self):
ZDOptions.__init__(self) ZDOptions.__init__(self)
self.add("program", "runner.program", "p:", "program=", self.add("program", "runner.program", "p:", "program=",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment