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

Function shouldPassThroughLocalToolFlag

src/cli/parser/args.ts:115–122  ·  view source on GitHub ↗
(
  command: string | null,
  definition: FlagDefinition | undefined,
)

Source from the content-addressed store, hash-verified

113}
114
115function shouldPassThroughLocalToolFlag(
116 command: string | null,
117 definition: FlagDefinition | undefined,
118): boolean {
119 if (command !== 'react-devtools') return false;
120 if (!definition) return true;
121 return !isFlagSupportedForCommand(definition.key, command);
122}
123
124function shouldPreservePostCommandArgs(command: string | null): boolean {
125 return command === 'cdp';

Callers 1

parseRawArgsFunction · 0.85

Calls 1

Tested by

no test coverage detected