def add_options(options):

    def _add_options(func):
        for option in reversed(options):
            func = option(func)
        return func
    return _add_options
def add_options(options):

    def _add_options(func):
        for option in reversed(options):
            func = option(func)
        return func
    return _add_options