MCPcopy
hub / github.com/cloudflare/capnweb / usage

Function usage

packages/capnweb-validate/src/cli.ts:16–28  ·  view source on GitHub ↗
(exitCode: number = 1)

Source from the content-addressed store, hash-verified

14import { runBuild } from "./transform/run.js";
15
16function usage(exitCode: number = 1): never {
17 let out = exitCode === 0 ? console.log : console.error;
18 out(`Usage:
19 capnweb-validate build --out <dir> [options]
20
21Options:
22 --out <dir> Directory to write transformed sources to. Required.
23 --tsconfig <path> Path to tsconfig.json. Defaults to ./tsconfig.json.
24 --cwd <dir> Working directory. Defaults to process.cwd().
25 --server-validation <mode> How server-side checks behave: throw | warn. Default throw.
26 -h, --help Show this message.`);
27 process.exit(exitCode);
28}
29
30type BuildArgs = {
31 out?: string;

Callers 2

parseBuildArgsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…