MCPcopy
hub / github.com/tj/commander.js / checkForUnknownOptions

Method checkForUnknownOptions

lib/command.js:1602–1606  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1600
1601 // We do not always call this check to avoid masking a "better" error, like unknown command.
1602 const checkForUnknownOptions = () => {
1603 if (parsed.unknown.length > 0) {
1604 this.unknownOption(parsed.unknown[0]);
1605 }
1606 };
1607
1608 const commandEvent = `command:${this.name()}`;
1609 if (this._actionHandler) {

Callers

nothing calls this directly

Calls 1

unknownOptionMethod · 0.95

Tested by

no test coverage detected