lightcrawler/cli.js

12 строки
225 B
JavaScript
Executable File

#!/usr/bin/env node
const yargs = require('yargs')
const lightcrawler = require('.')
const options = yargs
.alias('u', 'url').describe('url', 'URL to crawl')
.alias('h', 'help').help('h')
.argv
lightcrawler(options)