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

Function formatArgumentLabel

scripts/docs/src/generate-cli-docs.ts:164–168  ·  view source on GitHub ↗
(arg: Argument)

Source from the content-addressed store, hash-verified

162}
163
164function formatArgumentLabel(arg: Argument): string {
165 const name = arg.name();
166 const suffix = arg.variadic ? "..." : "";
167 return arg.required ? `<${name}${suffix}>` : `[${name}${suffix}]`;
168}
169
170function formatValue(value: unknown): string {
171 if (value === undefined) {

Callers 1

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