from server import Server
import sys


def runServer(host, port):
    con = Server(host, port, True)
    con.runServer()


if __name__ == "__main__":
    args = sys.argv
    host = "127.0.0.1"
    port = 8888

    if len(args) == 3:
        host = args[1]
        port = int(args[2])

    runServer(host, port)

from server import Server
import sys


def runServer(host, port):
    con = Server(host, port, False)
    con.runServer()


if __name__ == "__main__":
    args = sys.argv
    host = "127.0.0.1"
    port = 8888

    if len(args) == 3:
        host = args[1]
        port = int(args[2])

    runServer(host, port)

change parameter for user