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

Function resolveTrailingHelpTarget

src/bin.ts:90–95  ·  view source on GitHub ↗
(
  command: string | undefined,
  helpArg: string | undefined,
)

Source from the content-addressed store, hash-verified

88}
89
90function resolveTrailingHelpTarget(
91 command: string | undefined,
92 helpArg: string | undefined,
93): string | undefined {
94 return isHelpFlag(helpArg) ? command : undefined;
95}
96
97function normalizeHelpTarget(command: string): string {
98 if (command === 'long-press') return 'longpress';

Callers 1

resolveTwoArgHelpTargetFunction · 0.85

Calls 1

isHelpFlagFunction · 0.85

Tested by

no test coverage detected