Browse Source

Use default value in config-example.json if unset

pull/6/head
Menci 6 years ago
parent
commit
edf74fa03b
  1. 2
      app.js

2
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: [],

Loading…
Cancel
Save