Permalink
Browse files

Use _options.args which has flags filtered out.

  • Loading branch information...
1 parent 64daa51 commit 094116c5ee2966dbac01c6f6d5af9cee2cc7a27b Tom Robinson committed Mar 4, 2010
Showing with 10 additions and 7 deletions.
  1. +2 −4 lib/jake/application.js
  2. +8 −3 package.json
View
@@ -642,14 +642,12 @@ Application.prototype.collectTasks = function()
var topLevelTasks = this._topLevelTasks;
- SYSTEM.args.slice(1).forEach(function(/*String*/ anArgument)
+ this._options.args.forEach(function(/*String*/ anArgument)
{
var matches = anArgument.match(/^(\w+)=(.*)$/);
-
if (matches)
SYSTEM.env[matches[1]] = matches[2];
-
- else if (!anArgument.match(/^-/))
+ else
topLevelTasks.push(anArgument);
});
View
@@ -2,9 +2,14 @@
"name": "jake",
"author": "Francisco Tolmasky (http://tolmasky.com/) <francisco@280north.com>",
"contributors": [
- "Tom Robinson (http://tlrobinson.net/) <tom@280north.com>",
+ "Tom Robinson (http://tlrobinson.net/) <tom@280north.com>"
],
"description": "A build system for CommonJS, lifted from Rake",
- "keywords": ["build", "jake", "rake", "make"],
- "version":"0.1.5"
+ "keywords": [
+ "build",
+ "jake",
+ "rake",
+ "make"
+ ],
+ "version": "0.2"
}

0 comments on commit 094116c

Please sign in to comment.