diff --git a/index.js b/index.js index b7b3266..9b1fbcc 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ module.exports = { console.info('(2) Loading Command Line Parameters (载入命令行参数)') 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.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 ########') return global.EnviConfig