Compare commits

..

No commits in common. "1abb5927e319a3e698050515abed93d84d0a5fdc" and "9af9b79237cda456b5fda66bc360c80d6a442a77" have entirely different histories.

View File

@ -56,7 +56,7 @@ module.exports = {
commander.parse(process.argv)
delete global.envar.commanderOptions
// console.log('- Merging Command Line Parameters into Configuration (把命令行参数值合并入配置)')
console.log('- Merging Command Line Parameters into Configuration (把命令行参数值合并入配置)')
for (let key in commander) {
if (!/^_/.test(key) && typeof commander[key] === 'string') {
// commander 自带了一批 _开头的属性过滤掉
@ -73,7 +73,7 @@ module.exports = {
/*
*/
get_dynamic_envar ({ dynamicEnvarFiles = ['./envar-base-dynamic.js'] } = {}) {
get_dynamic_envar ({ dynamicEnvarFiles = './envar-base-dynamic.js' } = {}) {
// config file should be absolute or relative to the node process's dir.
let dynamicEnvar = {}