(command: string | null, unsupported: string[])
| 334 | } |
| 335 | |
| 336 | function formatUnsupportedFlagMessage(command: string | null, unsupported: string[]): string { |
| 337 | if (!command) { |
| 338 | return unsupported.length === 1 |
| 339 | ? `Flag ${unsupported[0]} requires a command that supports it.` |
| 340 | : `Flags ${unsupported.join(', ')} require a command that supports them.`; |
| 341 | } |
| 342 | return unsupported.length === 1 |
| 343 | ? `Flag ${unsupported[0]} is not supported for command ${command}.` |
| 344 | : `Flags ${unsupported.join(', ')} are not supported for command ${command}.`; |
| 345 | } |
| 346 | |
| 347 | export function usage(): string { |
| 348 | return buildUsageText(); |
no outgoing calls
no test coverage detected