From 094116c5ee2966dbac01c6f6d5af9cee2cc7a27b Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Thu, 4 Mar 2010 15:51:35 -0800 Subject: [PATCH] Use _options.args which has flags filtered out. --- lib/jake/application.js | 6 ++---- package.json | 11 ++++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/jake/application.js b/lib/jake/application.js index 7f8ce6f..9b36fae 100755 --- a/lib/jake/application.js +++ b/lib/jake/application.js @@ -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); }); diff --git a/package.json b/package.json index 27b2ae3..232e51e 100755 --- a/package.json +++ b/package.json @@ -2,9 +2,14 @@ "name": "jake", "author": "Francisco Tolmasky (http://tolmasky.com/) ", "contributors": [ - "Tom Robinson (http://tlrobinson.net/) ", + "Tom Robinson (http://tlrobinson.net/) " ], "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" } \ No newline at end of file