text: #!/usr/bin/env node
  /**
   * Created by count on 13/02/17.
   */
  import commander from 'commander';
  import pjson from '../../package.json';
  import loader from '../index';
  
  commander
    .version(pjson.version)
    .description(pjson.description)
    .option('--output [dir]', 'Output directory', './')
    .arguments('<url>')
    .action(async (url) => {
      try {
        const result = await loader(url, commander.output);
        console.log(result);
      } catch (e) {
        console.log(e);
      }
    });
  
  commander
    .parse(process.argv);
  
  if (!commander.args.length) commander.help();
  