Run the CLI.

def main():
    """Run the CLI."""

    args = parse_args()

    frontend = available_frontends[args.frontend]()

    frontend.begin()

    try:
        for event in run(args):
            frontend.output(event)
    finally:
        frontend.end()