MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / validateParsed

Function validateParsed

lib/models/command.js:557–570  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

555 };
556
557 let validateParsed = function (key) {
558 // ignore 'argv', 'h', and 'help'
559 if (!(key in commandOptions) && key !== 'argv' && key !== 'h' && key !== 'help') {
560 this.ui.writeLine(
561 chalk.yellow(
562 `The option '--${key}' is not registered with the '${this.name}' command. ` +
563 `Run \`ember ${this.name} --help\` for a list of supported options.`
564 )
565 );
566 }
567 if (typeof parsedOptions[key] !== 'object') {
568 commandOptions[camelize(key)] = parsedOptions[key];
569 }
570 };
571
572 this.availableOptions.forEach((option) => {
573 if (typeof option.type !== 'string') {

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…