Skip to content

Commit

Permalink
Merge pull request #222 from mountaindude/master
Browse files Browse the repository at this point in the history
Refine how cli options for specifying config files work
  • Loading branch information
mountaindude authored Apr 13, 2023
2 parents efcb466 + 242ae76 commit f8d20bc
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 f8d20bc

Please sign in to comment.