lightcrawler/cli.js

13 строки
319 B
JavaScript
Исходник Обычный вид История

2017-06-20 23:40:54 +03:00
#!/usr/bin/env node
const yargs = require('yargs')
const lightcrawler = require('.')
2017-06-21 03:53:39 +03:00
const options = yargs.demandOption(['c', 'u'])
2017-06-20 23:40:54 +03:00
.alias('u', 'url').describe('url', 'URL to crawl')
.alias('h', 'help').help('h')
2017-06-21 03:53:39 +03:00
.alias('c', 'config').describe('config', 'Options for lighthouse')
2017-06-20 23:40:54 +03:00
.argv
lightcrawler(options)