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

Function labelForFlag

src/cli/parser/args.ts:274–276  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

272}
273
274function labelForFlag(token: string): string {
275 return token.replace(/^-+/, '');
276}
277
278function looksLikeFlagToken(value: string): boolean {
279 if (!value.startsWith('-') || value === '-') return false;

Callers 1

parseFlagValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected