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

Function splitLongFlag

src/cli/parser/args.ts:201–205  ·  view source on GitHub ↗
(flag: string)

Source from the content-addressed store, hash-verified

199}
200
201function splitLongFlag(flag: string): [string, string | undefined] {
202 const equals = flag.indexOf('=');
203 if (equals === -1) return [flag, undefined];
204 return [flag.slice(0, equals), flag.slice(equals + 1)];
205}
206
207function parseFlagValue(
208 definition: FlagDefinition,

Callers 2

parseRawArgsFunction · 0.85
looksLikeFlagTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…