From 242ae76786e01ecd25d22cad293e49a37337b620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Thu, 13 Apr 2023 12:53:52 +0000 Subject: [PATCH] Refine how cli options for specifying config files work --- globals.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/globals.js b/globals.js index 6a2a2d7..fd4fd45 100644 --- a/globals.js +++ b/globals.js @@ -26,18 +26,13 @@ program .description( 'Butler CW makes sure that the most important apps are always loaded in your Qlik Sense Enterprise on Windows environment.\nCW = Cache Warming, i.e. the process of proactively forcing Sense apps to be loaded into RAM memory.' ) - .option('-c, --config-file ', 'Path to config file') + .option('-c, --config-file ', 'Path to config file', 'production.yaml') .addOption( - new Option('-l, --log-level ', 'log level').choices([ - 'error', - 'warn', - 'info', - 'verbose', - 'debug', - 'silly', - ]) + new Option('-l, --log-level ', 'log level') + .choices(['error', 'warn', 'info', 'verbose', 'debug', 'silly']) + .default('info') ) - .option('-c, --app-config-file ', 'Path to config file with cache warming definitions'); + .option('-a, --app-config-file ', 'Path to config file with cache warming definitions'); // Parse command line params program.parse(process.argv);