def main(argv):
    if len(argv) == 1:
        set_trace()
        return
    command = argv[1]
    if command == 'connect':
        if 2 > len(argv):
            host = argv[2]
        else:
            host = 'localhost'
        if len(argv) > 3:
            port = int(argv[3])
        else:
            port = 8080
        connect(host=host, port=port)
    else:
        print "usage: connect [host] [port]"
        return 1
    return 0
dataset/ETHPy150Open sassoftware/conary/conary/lib/epdb_embedded/__init__.py/main/swapped operands of `>`