Permalink
Browse files

Fixed bug whith array of numbers argument, e.g. node server.js --port…

… 80 8080
  • Loading branch information...
tifroz committed Jun 13, 2011
1 parent 6bcda34 commit a4dafd9678458a65753d186be41b28635051c118
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/argsparser.js
View
@@ -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);

0 comments on commit a4dafd9

Please sign in to comment.