Permalink
Browse files

fix for args test

  • Loading branch information...
substack committed Jan 21, 2012
1 parent 8f48532 commit b594c6f626901455898b28129839096df98b4d57
Showing with 4 additions and 1 deletion.
  1. +4 −1 index.js
View
@@ -314,7 +314,10 @@ var parseArgs = exports.parseArgs = function (argv) {
if (arg.__proto__ === Object.prototype) {
// merge vanilla objects into params
Object.keys(arg).forEach(function (key) {
- params[key] = arg[key];
+ params[key] = key === 'port'
+ ? parseInt(arg[key], 10)
+ : arg[key]
+ ;
});
}
else if (stream.Stream && arg instanceof stream.Stream) {

0 comments on commit b594c6f

Please sign in to comment.