Permalink
Browse files

Merge pull request #2 from dhruvbird/master

Array valued options
  • Loading branch information...
2 parents 51794a9 + b61a494 commit 01e2050c4e1099f9edffffc7f9e3b6e05e37d258 @akaspin committed Oct 31, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.js
View
@@ -118,7 +118,11 @@ Object.defineProperty(tav, "set", {
value = parseFloat(value);
}
}
- self[name] = value;
+ if (self[name] instanceof Array) {
+ self[name].push(value);
+ } else {
+ self[name] = value;
+ }
} else {
// Just argument
self.args.push(chunk);

0 comments on commit 01e2050

Please sign in to comment.