MCPcopy Index your code
hub / github.com/awesome-opencode/awesome-opencode / parseArgs

Function parseArgs

scripts/export-json.js:16–23  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

14const CATEGORIES = ['plugins', 'themes', 'agents', 'projects', 'resources'];
15
16function parseArgs(args) {
17 const outputFlagIndex = args.findIndex((arg) => arg === '--output');
18 const outputPath = outputFlagIndex !== -1 && args[outputFlagIndex + 1]
19 ? args[outputFlagIndex + 1]
20 : null;
21 const pretty = args.includes('--pretty');
22 return { outputPath, pretty };
23}
24
25function buildProductId(entry) {
26 if (entry._fileName) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected