MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / requiredArg

Function requiredArg

scripts/studio-host-provider.mjs:709–715  ·  view source on GitHub ↗
(args, name)

Source from the content-addressed store, hash-verified

707}
708
709function requiredArg(args, name) {
710 const value = args[name];
711 if (!value) {
712 throw new Error(`--${name} is required.`);
713 }
714 return value;
715}
716
717function redactConfig(config) {
718 return { ...config, hostToken: config.hostToken ? "[redacted]" : "" };

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected