Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codename-co/stack
/ flag
Function
flag
packages/scripts/maintenance/check-versions.ts:35–35 ·
view source on GitHub ↗
(n: string)
Source
from the content-addressed store, hash-verified
33
34
const
argv = process.argv.slice(2);
35
const
flag = (n: string) => argv.includes(`--${n}`);
36
const
values = (n: string) =>
37
argv.flatMap((a, i) => (a === `--${n}` ? [argv[i + 1]] : []));
38
Callers
1
check-versions.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected