mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
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:
@@ -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."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user