code: function execute(argv) {
    const opts = Options.parse(argv);
  
    if (opts.version) {
      /* eslint-disable global-require */
      console.log(`v${ require('../package.json').version }`);
      return Promise.resolve(0);
    }
  
    if (opts.help || !opts._.length) {
      console.log(Options.generateHelp());
      return Promise.resolve(0);
    }
  
    return lint(resolvePatterns(opts), opts);
  }
docs: Parse the command line arguments and run the linter
  
  @memberof module:lib/CLI
  @param {string[]} argv - Command line arguments
  @return {number|Promise<number>}
  A Promise that resolves with a numeric exit code