@property
def flags(self):
    flags = {}
    for (option, cls) in self.__options__.items():
        if issubclass(cls, Flag):
            flags[option] = getattr(self, option)
    return flags
@property
def flags(self):
    flags = {}
    for (option, cls) in self.__options__.items():
        if issubclass(cls, Flag):
            flags[option] = getattr(self, option)
    return flags