MCPcopy Index your code
hub / github.com/prettier/prettier / createOptionUsageHeader

Function createOptionUsageHeader

src/cli/usage.js:39–44  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

37}
38
39function createOptionUsageHeader(option) {
40 const name = `--${option.name}`;
41 const alias = option.alias ? `-${option.alias},` : null;
42 const type = createOptionUsageType(option);
43 return [alias, name, type].filter(Boolean).join(" ");
44}
45
46function createOptionUsageRow(header, content, threshold) {
47 const separator =

Callers 2

createOptionUsageFunction · 0.85
createDetailedUsageFunction · 0.85

Calls 1

createOptionUsageTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…