def configure():
    """Parse command line options and integrate with settings.
    """

    init_logging()

    if config.xml_debug:
        PrintReminder.yellow(
                'XML debug file at %s' % config.XML_DEBUG_FILENAME)
        config.xml_debug_fh = open(config.XML_DEBUG_FILENAME, 'w', 0)

    if not config.force:
        for fname in params:
            if not (fname.endswith('.conf') or fname.startswith('http')):
                print('File not found. File name should end with .conf'
                      ' or start with http')
                sys.exit(1)

    if config.dry_run:
        # In dry_run mode, commit_confirmed is not needed
        config.confirmed_in = None

    if config.confirmed_in:
        if config.dry_run:
            print(''.join([
                'Commit confirm and check (aka dry_run) ',
                'are mutually exclusive!',
                ]))
            sys.exit(1)
        if config.rollback_in:
            if config.rollback_in <= config.confirmed_in:
                print('ROLLBACK_IN must be > automatic CONFIRMED_IN!')
                sys.exit(1)
        else:
            config.rollback_in = config.confirmed_in + 1

    return params
dataset/ETHPy150Open facebook/fbpush/fbpush/main.py/configure/original