MCPcopy
hub / github.com/simstudioai/sim / parseUserArgs

Function parseUserArgs

packages/db/scripts/migrate-block-api-keys-to-byok.ts:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64function parseUserArgs(): string[] {
65 const users: string[] = []
66 const args = process.argv.slice(2)
67 for (let i = 0; i < args.length; i++) {
68 if (args[i] === '--user' && args[i + 1]) {
69 users.push(args[i + 1])
70 i++
71 }
72 }
73 return users
74}
75
76const USER_FILTER = parseUserArgs()
77

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected