Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
assign args in argument passing code
Browse files Browse the repository at this point in the history
minor syntax change
  • Loading branch information
w33ble committed Dec 15, 2016
1 parent d610c9c commit ce77d07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
};

0 comments on commit ce77d07

Please sign in to comment.