(config: { command: string }, message: string)
| 68 | |
| 69 | /** An error whose message ends with how to get the usage text. */ |
| 70 | export 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. |
no outgoing calls
no test coverage detected