From 242c9762e9a7a1410a9effabff7b2d57cbe4ff19 Mon Sep 17 00:00:00 2001 From: Jeff Carnes Date: Fri, 11 Dec 2015 01:35:13 -0800 Subject: [PATCH] Task arguments couldnt' contain equal symbol Fixes #311 --- lib/parseargs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/parseargs.js b/lib/parseargs.js index 89e69173..ca811e62 100644 --- a/lib/parseargs.js +++ b/lib/parseargs.js @@ -111,15 +111,16 @@ parseargs.Parser.prototype = new function () { if (!preempt) { // Parse out any env-vars and task-name while (!!(cmd = cmds.pop())) { + // Split up env args cmdItems = cmd.split('='); - if (cmdItems.length > 1) { + // Don't confuse task arguments with task args that contain a "=" + if (cmdItems.length > 1) {//} && cmdItems[0].indexOf('[') === -1) { envVars[cmdItems[0]] = cmdItems[1]; } else { taskNames.push(cmd); } } - } return {