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

Enable verbose mode for cmdctl,

git-svn-id: svn:// 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__':
......@@ -473,7 +476,7 @@ if __name__ == '__main__':
(options, args) = parser.parse_args()
run(options.addr, options.port, options.idle_timeout)
run(options.addr, options.port, options.idle_timeout, options.verbose)
except as se:
sys.stderr.write("[b10-cmdctl] Error creating b10-cmdctl, "
"is the command channel daemon running?\n")
Supports Markdown
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