MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / cliError

Function cliError

scripts/lib/cli-args.ts:70–72  ·  view source on GitHub ↗
(config: { command: string }, message: string)

Source from the content-addressed store, hash-verified

68
69/** An error whose message ends with how to get the usage text. */
70export function cliError(config: { command: string }, message: string): Error {
71 return new Error(`${message}\nRun \`${config.command} --help\` for usage.`);
72}
73
74// Node advises a `--` before a dash-led positional. Under pnpm that takes
75// two, because this parser drops the `--` pnpm forwards.

Callers 11

mainFunction · 0.90
mainFunction · 0.90
resolveAndValidateArgsFunction · 0.90
parseCommandFunction · 0.90
resolveAndValidateArgsFunction · 0.90
resolveArgsFunction · 0.90
cli-args.test.tsFile · 0.90
resolveArgsFunction · 0.90
resolveAndValidateArgsFunction · 0.90
mainFunction · 0.90
parseCliArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected