MCPcopy Index your code
hub / github.com/yargs/yargs / fail

Method fail

lib/usage.ts:771–771  ·  view source on GitHub ↗
(msg?: string | null, err?: YError | string)

Source from the content-addressed store, hash-verified

769 epilog(msg: string): void;
770 example(cmd: string, description?: string): void;
771 fail(msg?: string | null, err?: YError | string): void;
772 failFn(f: FailureFunction | boolean): void;
773 freeze(): void;
774 functionDescription(fn: {name?: string}): string;

Callers 10

checkMethod · 0.65
validationFunction · 0.65
validation.mjsFile · 0.65
command.mjsFile · 0.65
usage.mjsFile · 0.65
yargs.mjsFile · 0.65
middleware.mjsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected