def __getattr__(self, name):
        if Flags.PARSED_OPTIONS and hasattr(Flags.PARSED_OPTIONS, name):
            return getattr(Flags.PARSED_OPTIONS, name)

        for option in Flags.PARSER.option_list:
            if option.dest == name:
                return option.default

        raise AttributeError('Option instance has no attribute %s' % name)
dataset/ETHPy150Open openstack/compass-core/compass/utils/flags.py/Flags.__getattr__/original