def main():
    args = docopt(__doc__, version=__version__)
    log_level = (logging.DEBUG if args['--debug'] else logging.INFO)
    logging.basicConfig(level=log_level, format='%(levelname)s: %(message)s')
    try:
        init(args)
    except KeyboardInterrupt:
        sys.exit(0)
def main():
    args = docopt(__doc__, version=__version__)
    log_level = (logging.DEBUG if args['--debug'] else logging.INFO)
    logging.basicConfig(level=log_level, format='%(levelname)s: %(message)s')
    try:
        init(args)
    except KeyboardInterrupt:
        sys.exit(0)