MCPcopy Index your code
hub / github.com/callstack/agent-device / formatUnsupportedFlagMessage

Function formatUnsupportedFlagMessage

src/cli/parser/args.ts:336–345  ·  view source on GitHub ↗
(command: string | null, unsupported: string[])

Source from the content-addressed store, hash-verified

334}
335
336function 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
347export function usage(): string {
348 return buildUsageText();

Callers 1

finalizeParsedArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected