Skip to content

Commit

Permalink
Task arguments couldnt' contain equal symbol
Browse files Browse the repository at this point in the history
Fixes #311
  • Loading branch information
welearnednothing committed Dec 11, 2015
1 parent 7905227 commit 242c976
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/parseargs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 242c976

Please sign in to comment.