diff --git a/server.js b/server.js index 10551ae..eedd25c 100644 --- a/server.js +++ b/server.js @@ -3,7 +3,7 @@ const path = require('path') const express = require('express') const wo = (global.wo = { - envar : require('base.enviconfig').mergeConfig({rawConfig: { + envar : require('base.enviconfig').configEnvar({rawEnvar: { Commander_Option_List: [ // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。 ['Web_Protocol', '-P, --Web_Protocol ', 'Web protocol: http|https|httpall.'],