From 46f40d29be70c537b1a47a61b846df12eff42646 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 11 Dec 2022 18:08:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B9=20=D1=80?= =?UTF-8?q?=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/index.js b/server/index.js index 92427df..dcf5617 100644 --- a/server/index.js +++ b/server/index.js @@ -16,16 +16,16 @@ let branch = ''; const argvStrings = ['host', 'port', 'app-dir', 'lib-dir', 'inpx']; function showHelp(defaultConfig) { - console.log(utils.versionText(config)); + console.log(utils.versionText(defaultConfig)); console.log( -`Usage: ${config.name} [options] +`Usage: ${defaultConfig.name} [options] Options: - --help Print ${config.name} command line options + --help Print ${defaultConfig.name} command line options --host= Set web server host, default: ${defaultConfig.server.host} --port= Set web server port, default: ${defaultConfig.server.port} - --app-dir= Set application working directory, default: /.${config.name} - --lib-dir= Set library directory, default: the same as ${config.name} executable's + --app-dir= Set application working directory, default: /.${defaultConfig.name} + --lib-dir= Set library directory, default: the same as ${defaultConfig.name} executable's --inpx= Set INPX collection file, default: the one that found in library dir --recreate Force recreation of the search database on start `