MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / parseArgs

Function parseArgs

cli/src/bin/e2a.ts:37–41  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

35`;
36
37function parseArgs(argv: string[]): { command: string; args: string[] } {
38 const args = argv.slice(2);
39 const command = args[0] || "";
40 return { command, args: args.slice(1) };
41}
42
43function getFlag(args: string[], flag: string): string | undefined {
44 const idx = args.indexOf(flag);

Callers 2

mainFunction · 0.85
args.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected