MCPcopy
hub / github.com/opentrace/opentrace / printUsage

Function printUsage

ui/bin/copy-wasm.js:41–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39const WASM_DIR = join(__dirname, '..', 'public', 'wasm');
40
41function printUsage() {
42 console.log(`Usage: opentrace-copy-wasm [options] <dest-dir>
43
44Copy tree-sitter WASM files to your app's public directory so they can
45be served as static assets for browser-based code parsing.
46
47Options:
48 --languages <list> Comma-separated list of languages (default: all)
49 Available: python, typescript, tsx, go, rust, java,
50 kotlin, ruby, c, cpp, csharp, swift, php, bash, json,
51 toml
52 --runtime-only Copy only the web-tree-sitter.wasm runtime
53 --help Show this help message
54
55Examples:
56 opentrace-copy-wasm public/
57 opentrace-copy-wasm --languages python,typescript,go public/
58 opentrace-copy-wasm --runtime-only public/`);
59}
60
61async function main() {
62 const args = process.argv.slice(2);

Callers 1

mainFunction · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected