#!/usr/bin/env node
'use strict';

var pkg = require('./package.json');
var iconmartGlyphiconsCrawler = require('./');
var argv = process.argv.slice(2);

function help() {
  console.log([
    '',
      '  ' + pkg.description,
    '',
    '  Example',
    '    iconmart-glyphicons-crawler ',
    ''
  ].join('\n'));
}

if (argv.indexOf('--help') !== -1) {
  help();
  return;
}

if (argv.indexOf('--version') !== -1) {
  console.log(pkg.version);
  return;
}


iconmartGlyphiconsCrawler(argv[0], function(){

});

#!/usr/bin/env node
'use strict';

var pkg = require('./package.json');
var iconmartGlyphiconsCrawler = require('./');
var argv = process.argv.slice(2);

function help() {
  console.log([
    '',
      '  ' + pkg.description,
    '',
    '  Example',
    '    iconmart-glyphicons-crawler ',
    ''
  ].join('\n'));
}

if (argv.indexOf('--help') !== -1) {
  help();
  return;
}

if (argv.indexOf('--version') !== -1) {
  console.log(pkg.version);
  return;
}


iconmartGlyphiconsCrawler.run(argv[0], function(){

});

Adjust CLI script to use .run() method
Adjust CLI script to use .run() method
