mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 02:20:03 -04:00
Install commander package
This commit is contained in:
parent
f12d96f07e
commit
7649c7078c
3 changed files with 18 additions and 6 deletions
|
@ -1,11 +1,16 @@
|
|||
const { program } = require('commander')
|
||||
const helper = require('./helper')
|
||||
|
||||
const config = {
|
||||
debug: process.env.npm_config_debug || false,
|
||||
country: process.env.npm_config_country,
|
||||
exclude: process.env.npm_config_exclude,
|
||||
epg: process.env.npm_config_epg || false
|
||||
}
|
||||
program
|
||||
.version('1.0.0', '-v, --version')
|
||||
.usage('[OPTIONS]...')
|
||||
.option('-d, --debug', 'Debug mode')
|
||||
.option('-c, --country <country>', 'Comma-separated list of country codes')
|
||||
.option('-e, --exclude <exclude>', 'Comma-separated list of country codes to be excluded ')
|
||||
.option('--epg', 'Turn on EPG parser')
|
||||
.parse(process.argv)
|
||||
|
||||
const config = program.opts()
|
||||
|
||||
let updated = 0
|
||||
let items = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue