Comparing version 0.4.1 to 0.5.0
@@ -51,2 +51,7 @@ /** | ||
result[optLongName] = process.env[envName] | ||
// Also keep a copy of the value with environment variable name if | ||
// defined. | ||
if (result.hasOwnProperty(optLongName)) | ||
result[envName] = result[optLongName] | ||
} | ||
@@ -76,3 +81,4 @@ }) | ||
console.log('\nmongodb: %s, redis-server: %s', _result.mongodb, _result.redisServer) | ||
console.log('\nmongodb: %s, redisServer: %s', _result.mongodb, _result.redisServer) | ||
console.log('\nPREFIX_MONGODB: %s, PREFIX_REDIS_SERVER: %s\n', _result.PREFIX_MONGODB, _result.PREFIX_REDIS_SERVER) | ||
} |
{ | ||
"name": "cmdenv", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Node.js command line options parser use environment variables as fallback.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4538
66