Commit 6fb0878d authored by Likun Zhang's avatar Likun Zhang

Enable verbose mode for cmdctl,

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1502 e5f2f494-b856-4b98-b285-d166d9295462
parent 4063c33d
......@@ -466,6 +466,9 @@ def set_cmd_options(parser):
parser.add_option('-i', '--idle-timeout', dest = 'idle_timeout', type = 'int',
default = '1200', help = 'login idle time out')
parser.add_option("-v", "--verbose", dest="verbose", action="store_true", default=False,
help="display more about what is going on")
if __name__ == '__main__':
try:
......@@ -473,7 +476,7 @@ if __name__ == '__main__':
set_cmd_options(parser)
(options, args) = parser.parse_args()
set_signal_handler()
run(options.addr, options.port, options.idle_timeout)
run(options.addr, options.port, options.idle_timeout, options.verbose)
except isc.cc.SessionError as se:
sys.stderr.write("[b10-cmdctl] Error creating b10-cmdctl, "
"is the command channel daemon running?\n")
......
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