diff --git a/server.js b/server.js index 0df0a16..673a02b 100644 --- a/server.js +++ b/server.js @@ -4,7 +4,7 @@ const nettool = require('sol.nettool') const express = require('express') const wo = (global.wo = { - envi : require('sol.enviconfig')({ + envi : require('sol.enviconfig').mergeConfig({ commanderOptions: [ // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。 ['protocol', '-P, --protocol ', 'Web Server protocol: http|https|httpall.'],