hasOption(name) {
    for (let i = 0; i < this.availableOptions.length; i++) {
      if (this.availableOptions[i].name === name) {
        return true;
      }
    }
    return false;
  }
Reports if the given command has a command line option by a given name

    @method hasOption
    @param {String} name
    @return {Boolean}