MCPcopy
hub / github.com/lowdefy/lowdefy / parse

Function parse

scripts/lib/parseArgs.mjs:28–39  ·  view source on GitHub ↗
(extraOptions = {})

Source from the content-addressed store, hash-verified

26};
27
28function parse(extraOptions = {}) {
29 const { values } = parseArgs({
30 options: { ...sharedOptions, ...extraOptions },
31 strict: false,
32 });
33 return {
34 configDirectory: path.resolve(values['config-directory']),
35 logLevel: values['log-level'],
36 skipBuild: values['skip-build'],
37 values,
38 };
39}
40
41export { REPO_ROOT };
42export default parse;

Callers 2

dev.mjsFile · 0.50
build.mjsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected