@ -69,9 +69,9 @@ def main():
host = urlM['host']
# Call api
# TODO Support port
server = Connection(proto=proto, host=host)
server.login(args.user, passwd)
args.func(server, args)
with Connection(proto=proto, host=host) as server:
if __name__ == "__main__":
main()