assign args in argument passing code

minor syntax change

Original commit: elastic/kibana-plugin-helpers@ce77d071d1
This commit is contained in:
Joe Fleming 2016-12-15 12:41:36 -07:00
parent beb4b33f62
commit 01a8fcee35

View file

@ -6,6 +6,8 @@ module.exports = function run(name) {
// call the action function with the plugin, then all
// renaining arguments from commander
var plugin = pluginConfig();
action.apply(null, [plugin, run].concat([].slice.apply(arguments)));
var args = [].slice.apply(arguments);
action.apply(null, [plugin, run].concat(args));
};
};