

def options(self, parser, env=os.environ):
    Plugin.options(self, parser, env)
    opt = parser.add_option

    def make_option(name, **kw):
        callback_ = kw.pop('callback', None)
        if callback_:

            def wrap_(option, opt_str, value, parser):
                callback_(opt_str, value, parser)
            kw['callback'] = wrap_
        opt(name, **kw)
    plugin_base.setup_options(make_option)
    plugin_base.read_config()

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/testing/plugin/noseplugin.py NoseSQLAlchemy.options/original