Addresses bug with array of number argument #4

Closed
wants to merge 1 commit into
from
View
2 lib/argsparser.js
@@ -29,7 +29,7 @@ exports.parse = function(args) {
if (curValType === 'boolean') {
opts[curSwitch] = arg;
- } else if (curValType === 'string') {
+ } else if (curValType === 'string' || curValType === 'number') {
opts[curSwitch] = [opts[curSwitch], arg];
} else {
opts[curSwitch].push(arg);