Skip to content
Browse files

fix for args test

  • Loading branch information...
1 parent 8f48532 commit b594c6f626901455898b28129839096df98b4d57 @substack committed Jan 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 index.js
View
5 index.js
@@ -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.
Something went wrong with that request. Please try again.