<filename>run_client.py
import argparse
import pathlib

from src.Client.client import Client


def main(host, port):
    pathlib.Path("data/Users").mkdir(parents=True, exist_ok=True)
    client = Client(host, port)
    client.start()


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Chatroom Server")
    parser.add_argument("host", help="Interface the server listens at")
    parser.add_argument(
        "-p", metavar="PORT", type=int, default=5050,
        help="TCP port (default 5050)"
    )
    args = parser.parse_args()

    main(args.host, args.p)
