MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / flag

Function flag

skills/hyperframes-media/scripts/audio.mjs:59–62  ·  view source on GitHub ↗
(name, def)

Source from the content-addressed store, hash-verified

57const HERE = dirname(fileURLToPath(import.meta.url));
58const argv = process.argv.slice(2);
59const flag = (name, def) => {
60 const i = argv.indexOf(`--${name}`);
61 return i >= 0 && i + 1 < argv.length ? argv[i + 1] : def;
62};
63const has = (name) => argv.includes(`--${name}`);
64const die = (m) => {
65 console.error(`✗ audio engine: ${m}`);

Callers 1

audio.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected