def init_logging_for_cmdline():
    """Set up a sane logging configuration for command-line tools.

    This must be called early in the main function.
    """
    import logging
    logging.basicConfig(format='%(levelname)s: %(message)s', level='INFO')
