Update index.js

This commit is contained in:
Aleksandr Statciuk 2021-09-15 11:19:45 +03:00
parent b28fecef50
commit 274d80e0f3
1 changed files with 7 additions and 2 deletions

View File

@ -10,11 +10,16 @@ program
.version(version, '-v, --version')
.description(description)
.option('-c, --config <config>', 'Path to [site].config.js file')
.option('-d, --debug', 'Enable debug mode')
.option('-o, --output <output>', 'Path to output file', 'guide.xml')
.option('--channels <channels>', 'Path to channels.xml file')
.option('--lang <lang>', 'Set default language for all programs', 'en')
.option('--days <days>', 'Number of days for which to grab the program', 1)
.option('--delay <delay>', 'Delay between requests (in mileseconds)', 3000)
.option('--debug', 'Enable debug mode', false)
.parse(process.argv)
const options = program.opts()
const config = utils.loadConfig(options.config)
const config = utils.loadConfig(options)
async function main() {
console.log('\r\nStarting...')