"""Main entry point for running the MUD server."""

import asyncio
import logging
import sys

from mudlib.server import run_server

if __name__ == "__main__":
    level = logging.DEBUG if "--debug" in sys.argv else logging.INFO
    logging.basicConfig(
        level=level,
        format="%(asctime)s.%(msecs)03d %(name)s %(message)s",
        datefmt="%H:%M:%S",
    )
    asyncio.run(run_server())
