rename commanderOptions to Commander_Option_List
This commit is contained in:
parent
8d3f4b2350
commit
d954fb3005
4
index.js
4
index.js
@ -56,7 +56,7 @@ module.exports = {
|
|||||||
|
|
||||||
console.info('(2) Loading Command Line Parameters (载入命令行参数)')
|
console.info('(2) Loading Command Line Parameters (载入命令行参数)')
|
||||||
commander.version(global.EnviConfig.VERSION || '0.0.1', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version'
|
commander.version(global.EnviConfig.VERSION || '0.0.1', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version'
|
||||||
for (let [key, param, desc] of global.EnviConfig.commanderOptions || []) {
|
for (let [key, param, desc] of global.EnviConfig.Commander_Option_List || []) {
|
||||||
commander.option(param, `${desc} Default = "${global.EnviConfig[key]}"`)
|
commander.option(param, `${desc} Default = "${global.EnviConfig[key]}"`)
|
||||||
}
|
}
|
||||||
commander.parse(process.argv)
|
commander.parse(process.argv)
|
||||||
@ -69,7 +69,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete global.EnviConfig.commanderOptions // do not print commanderOptions to console
|
delete global.EnviConfig.Commander_Option_List // do not print Commander_Option_List to console
|
||||||
|
|
||||||
console.log('######## Completed Environment Configuration ########')
|
console.log('######## Completed Environment Configuration ########')
|
||||||
return global.EnviConfig
|
return global.EnviConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user