From edf74fa03bc576b15c01ed5e57dbe2a270e20112 Mon Sep 17 00:00:00 2001 From: Menci Date: Wed, 7 Nov 2018 13:55:32 +0800 Subject: [PATCH] Use default value in config-example.json if unset --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 6760f75..4f22dac 100644 --- a/app.js +++ b/app.js @@ -31,7 +31,7 @@ const options = commandLineArgs(optionDefinitions); global.syzoj = { rootDir: __dirname, - config: require(options.config), + config: Object.assign({}, require('./config-example.json'), require(options.config)), configDir: options.config, models: [], modules: [],