"""Run CactusBot."""

from asyncio import get_event_loop

from cactusbot import Cactus

from config import SERVICE, USERNAME, PASSWORD


if __name__ == "__main__":

    loop = get_event_loop()

    cactus = Cactus(SERVICE)

    try:
        loop.run_until_complete(cactus.run(USERNAME, PASSWORD))
        loop.run_forever()
    finally:
        loop.close()

@@ -51,16 +51,53 @@
 t_loop%0A%0A
+from argparse import ArgumentParser%0A%0A
 from cac
@@ -195,16 +195,472 @@
 in__%22:%0A%0A
+    parser = ArgumentParser(description=%22Run CactusBot.%22)%0A%0A    parser.add_argument(%0A        %22--debug%22,%0A        help=%22set custom logger level%22,%0A        metavar=%22LEVEL%22,%0A        nargs='?',%0A        const=%22DEBUG%22,%0A        default=%22INFO%22%0A    )%0A%0A    parser.add_argument(%0A        %22--quiet%22,%0A        help=%22send no messages to public chat%22,%0A        metavar=%22USER%22,%0A        nargs='?',%0A        const=True,%0A        default=False%0A    )%0A%0A    args = parser.parse_args()%0A%0A
     loop

Add CLI argument parsing