

def run():
    'Run Markdown from the command line.'
    (options, logging_level) = parse_options()
    if (not options):
        sys.exit(2)
    logger.setLevel(logging_level)
    console_handler = logging.StreamHandler()
    logger.addHandler(console_handler)
    if (logging_level <= WARNING):
        warnings.filterwarnings('default')
        logging.captureWarnings(True)
        warn_logger = logging.getLogger('py.warnings')
        warn_logger.addHandler(console_handler)
    markdown.markdownFromFile(**options)

dataset/ETHPy150Open dragondjf/QMarkdowner/markdown/__main__.py run/original