fix(cli): an unknown flag lists the command's real flags (#7740)

The error only said to run --help, so an agent guessed another flag. It now
names every long flag the command declares, and --search points to --query.
This commit is contained in:
Miguel Ángel
2026-11-14 14:46:32 +00:00
committed by GitHub
parent e21e64f6ab
commit 88beb282f2
3 changed files with 59 additions and 10 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ machine-readable `code` and, when there is a next step, a `hint`:
"ok": false,
"error": {
"code": "unknown_flag",
"message": "Unknown flag: --out",
"hint": "Did you mean --output? Run 'hyperframes render --help' to see its flags."
"message": "Unknown flag: --search",
"hint": "Did you mean --query? Its flags: --type, --tag, --json, --human-friendly, --query, --yes, --on-device. Run 'hyperframes catalog --help' for what each does."
}
}
```