code: function outputHelpIfNecessary(cmd, options) {
    options = options || [];
    for (var i = 0; i < options.length; i++) {
      if (options[i] == '--help' || options[i] == '-h') {
        process.stdout.write(cmd.helpInformation());
        cmd.emit('--help');
        process.exit(0);
      }
    }
  }
docs: Output help information if necessary
  
  @param {Command} command to output help for
  @param {Array} array of options to search for -h or --help
  @api private