Skip to content

Commit

Permalink
Refine how cli options for specifying config files work
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Apr 13, 2023
1 parent efcb466 commit 242ae76
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file>', 'Path to config file')
.option('-c, --config-file <file>', 'Path to config file', 'production.yaml')
.addOption(
new Option('-l, --log-level <level>', 'log level').choices([
'error',
'warn',
'info',
'verbose',
'debug',
'silly',
])
new Option('-l, --log-level <level>', 'log level')
.choices(['error', 'warn', 'info', 'verbose', 'debug', 'silly'])
.default('info')
)
.option('-c, --app-config-file <file>', 'Path to config file with cache warming definitions');
.option('-a, --app-config-file <file>', 'Path to config file with cache warming definitions');

// Parse command line params
program.parse(process.argv);
Expand Down

0 comments on commit 242ae76

Please sign in to comment.