fix: restore rich descriptions lost in auto-generation

- Snapshot flags: add back value hints (-d <N>, -s <sel>, -o <path>)
- Snapshot flags: restore parenthetical context (@e refs, @c refs, etc.)
- Commands: is → includes valid states enum
- Commands: console → notes --errors filter behavior
- Commands: press → lists common keys (Enter, Tab, Escape)
- Commands: cookie-import-browser → describes picker UI
- Commands: dialog-accept → specifies alert/confirm/prompt
- Tips: restore → arrow (was downgraded to ->)
This commit is contained in:
Garry Tan
2026-03-13 15:52:39 -07:00
parent 65455a582e
commit a6153e3cc6
6 changed files with 44 additions and 45 deletions
+2 -4
View File
@@ -63,10 +63,8 @@ function generateSnapshotFlags(): string {
];
for (const flag of SNAPSHOT_FLAGS) {
const flagStr = flag.takesValue
? `${flag.short.padEnd(10)}${flag.description}`
: `${flag.short.padEnd(10)}${flag.description}`;
lines.push(flagStr);
const label = flag.valueHint ? `${flag.short} ${flag.valueHint}` : flag.short;
lines.push(`${label.padEnd(10)}${flag.description}`);
}
lines.push('```');