Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
274
function
labelForFlag(token: string): string {
275
return
token.replace(/^-+/,
''
);
276
}
277
278
function
looksLikeFlagToken(value: string): boolean {
279
if
(!value.startsWith(
'-'
) || value ===
'-'
)
return
false;
Callers
1
parseFlagValue
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected