def set_logging_parameters(args):
    for attr, catset, defaults in (
            ('info', args_info, INFO_ALL),
            ('debug', args_debug, DEBUG_ALL)):
        option = getattr(args, attr)
        if option:
            catset.update(x.lower() for x in option.split(','))
            if 'all' in catset:
                catset.update(defaults)

    if args.verbose is not None:
        for level in sorted(verbose_categories):
            if args.verbose >= level:
                args_info.update(verbose_categories[level])
dataset/ETHPy150Open mikr/xcodeprojer/xcodeprojer.py/set_logging_parameters/original