MCPcopy Index your code
hub / github.com/simstudioai/sim / parseFromFileArg

Function parseFromFileArg

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

Source from the content-addressed store, hash-verified

76const USER_FILTER = parseUserArgs()
77
78function parseFromFileArg(): string | null {
79 const args = process.argv.slice(2)
80 for (let i = 0; i < args.length; i++) {
81 if (args[i] === '--from-file' && args[i + 1]) {
82 return args[i + 1]
83 }
84 }
85 return null
86}
87
88const FROM_FILE = parseFromFileArg()
89

Calls

no outgoing calls

Tested by

no test coverage detected