Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass positional args instead of array

  • Loading branch information...
commit ca45a84cc2f2a70113741f4455feefac2480591f 1 parent 2b383ff
mde authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  bin/cli.js
  2. +3 −2 lib/jake.js
View
2  bin/cli.js
@@ -20,4 +20,4 @@
var args = process.argv.slice(2)
, jake = require('../lib/jake');
-jake.run(args);
+jake.run.apply(jake, args);
View
5 lib/jake.js
@@ -229,8 +229,9 @@ utils.mixin(jake, new (function () {
return task;
};
- jake.run = function (args) {
- var program = new Program()
+ this.run = function () {
+ var args = Array.prototype.slice.call(arguments)
+ , program = new Program()
, opts
, envVars
, taskNames
Please sign in to comment.
Something went wrong with that request. Please try again.