Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from dhruvbird/master

Array valued options
  • Loading branch information...
commit 01e2050c4e1099f9edffffc7f9e3b6e05e37d258 2 parents 51794a9 + b61a494
Alexander Dorofeev authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.js
6 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);
Please sign in to comment.
Something went wrong with that request. Please try again.