MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / parseArgs

Function parseArgs

scripts/run-javascript-lifecycle-tests.mjs:81–89  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

79];
80
81function parseArgs(argv) {
82 if (argv.length === 0) {
83 return DEFAULT_BUNDLES;
84 }
85 return argv.map((arg, idx) => ({
86 name: path.basename(arg).replace(/\.(zip|war|jar)$/i, '') || `bundle-${idx}`,
87 bundle: path.resolve(arg)
88 }));
89}
90
91/**
92 * Materialise a bundle into a freshly-created directory so the harness

Callers 1

mainFunction · 0.85

Calls 3

mapMethod · 0.65
replaceMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected