Skip to content

Commit

Permalink
Use _options.args which has flags filtered out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Mar 4, 2010
1 parent 64daa51 commit 094116c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/jake/application.js
Expand Up @@ -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);
});

Expand Down
11 changes: 8 additions & 3 deletions package.json
Expand Up @@ -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.