MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / parseArgs

Function parseArgs

graph-ui/tools/eval-llm.mjs:196–210  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

194const log = (...parts) => console.log('[eval-llm]', ...parts);
195
196function parseArgs(argv) {
197 const args = { dry: false, only: '', models: '' };
198 for (let i = 0; i < argv.length; i += 1) {
199 if (argv[i] === '--dry') {
200 args.dry = true;
201 } else if (argv[i] === '--only') {
202 args.only = argv[i + 1] ?? '';
203 i += 1;
204 } else if (argv[i] === '--models') {
205 args.models = argv[i + 1] ?? '';
206 i += 1;
207 }
208 }
209 return args;
210}
211
212/** Case-insensitive containment. Names, paths and numbers, never phrasing. */
213const contains = (haystack, needle) => haystack.toLowerCase().includes(needle.toLowerCase());

Callers 2

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected