MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / hasOption

Function hasOption

lib/models/command.js:333–340  ·  view source on GitHub ↗

Reports if the given command has a command line option by a given name @method hasOption @param {String} name @return {Boolean}

(name)

Source from the content-addressed store, hash-verified

331 @return {Boolean}
332 */
333 hasOption(name) {
334 for (let i = 0; i < this.availableOptions.length; i++) {
335 if (this.availableOptions[i].name === name) {
336 return true;
337 }
338 }
339 return false;
340 },
341
342 /**
343 Merges any options with duplicate keys in the availableOptions array.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…