MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / extractOptionPlaceholder

Function extractOptionPlaceholder

scripts/docs/src/generate-cli-docs.ts:248–251  ·  view source on GitHub ↗
(option: Option)

Source from the content-addressed store, hash-verified

246}
247
248function extractOptionPlaceholder(option: Option): string {
249 const match = option.flags.match(/(<[^>]+>|\[[^\]]+\])/);
250 return match ? match[0] : "";
251}
252
253function buildOptionUsage(commandPath: string, option: Option): string {
254 const preferred =

Callers 1

buildOptionUsageFunction · 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…