diff --git a/loader/src/cmd/plugin_main.cc b/loader/src/cmd/plugin_main.cc index f831c9d5..0c1f5ad4 100644 --- a/loader/src/cmd/plugin_main.cc +++ b/loader/src/cmd/plugin_main.cc @@ -72,7 +72,7 @@ void addPluginFlags(CLI::App &_app) opt->command = PluginCommand::kPluginInfo; }, "Get info about a plugin.")->needs(plugin); - _app.callback([&_app, opt](){ + _app.callback([opt](){ runPluginCommand(*opt); }); }