This commit is contained in:
陆柯 2022-07-30 12:36:50 +08:00
parent 73fc0541ed
commit 5895d3bbe7

View File

@ -55,7 +55,7 @@ module.exports = {
commander.parse(process.argv) commander.parse(process.argv)
delete global.envar.Commander_Option_List delete global.envar.Commander_Option_List
console.log('- Merging Command Line Parameters into Configuration (把命令行参数值合并入配置)') // console.log('- Merging Command Line Parameters into Configuration (把命令行参数值合并入配置)')
for (let key in commander) { for (let key in commander) {
if (!/^_/.test(key) && typeof commander[key] === 'string') { if (!/^_/.test(key) && typeof commander[key] === 'string') {
// commander 自带了一批 _开头的属性过滤掉 // commander 自带了一批 _开头的属性过滤掉