Commit 300e4ef2 authored by David Johnson's avatar David Johnson

Fix arg handling bug.

parent f87f8de3
...@@ -452,13 +452,13 @@ def main(): ...@@ -452,13 +452,13 @@ def main():
(host,port,acllist) = (DEF_HOST,DEF_PORT,DEF_ACLLIST) (host,port,acllist) = (DEF_HOST,DEF_PORT,DEF_ACLLIST)
for (o,v) in opts: for (o,v) in opts:
if o == 'h': if o == '-h':
host = v host = v
pass pass
elif o == 'p': elif o == '-p':
port = int(v) port = int(v)
pass pass
elif o == 'a': elif o == '-a':
acllist = v.split(',') acllist = v.split(',')
pass pass
pass pass
......
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