MCPcopy Create free account
hub / github.com/yargs/yargs / extractDesc

Method extractDesc

lib/command.ts:750–756  ·  view source on GitHub ↗
({describe, description, desc}: CommandHandlerDefinition)

Source from the content-addressed store, hash-verified

748 }
749
750 private extractDesc({describe, description, desc}: CommandHandlerDefinition) {
751 for (const test of [describe, description, desc]) {
752 if (typeof test === 'string' || test === false) return test;
753 assertNotStrictEqual(test, true as const, this.shim);
754 }
755 return false;
756 }
757 // Push/pop the current command configuration:
758 freeze() {
759 this.frozens.push({

Callers 1

addHandlerMethod · 0.95

Calls 1

assertNotStrictEqualFunction · 0.85

Tested by

no test coverage detected