mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
fix(cli): use canonical option flags in llms manifests (#11928)
The --llms-full manifest and discovery table rendered raw object keys (--blockSize), which disagreed with command help (--block-size). Reuse optionFlagName so manifests emit the same canonical flags as help, and update the two CLI parity goldens. Adds a boundary test asserting both surfaces agree on canonical flag names.
This commit is contained in:
1 parent
55fd0ff590
commit
f93a8db72d
4 files changed
+36
-3
No files matched your search
@@ -24,6 +24,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { CliCommandEntry } from "./commandRegistry.js";
|
||||
import { optionFlagName } from "./optionFields.js";
|
||||
|
||||
/** The manifests' format version, which callers may already check. */
|
||||
const MANIFEST_VERSION = "incur.v1";
|
||||
@@ -124,7 +125,7 @@ const commandBody = (cli: string, { name, definition }: CliCommandEntry) => {
|
||||
const text = field.description ?? "";
|
||||
const description =
|
||||
property?.deprecated === true ? `**Deprecated.** ${text}` : text;
|
||||
return `| \`--${key}\` | \`${tableType(property)}\` | ${fallback === "" ? "" : `\`${fallback}\``} | ${description} |`;
|
||||
return `| \`--${optionFlagName(key)}\` | \`${tableType(property)}\` | ${fallback === "" ? "" : `\`${fallback}\``} | ${description} |`;
|
||||
},
|
||||
);
|
||||
sections.push(
|
||||
|
||||
Reference in new issue
Block a user