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

Function isValidParsedOption

lib/models/command.js:669–681  ·  view source on GitHub ↗
(option, parsedOption)

Source from the content-addressed store, hash-verified

667 Validates options parsed by nopt
668*/
669function isValidParsedOption(option, parsedOption) {
670 // option.name didn't parse
671 if (parsedOption === undefined) {
672 // no default
673 if (option.default === undefined) {
674 if (option.required) {
675 return false;
676 }
677 }
678 }
679
680 return true;
681}
682
683/*
684 Validates alias. Must be a string or single key object

Callers 1

assignOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…