Priority
P1
Problem
The OpenAPI and RPC codegen CLIs parse known flags by lookup but do not reject leftover unknown flags. Misspelled public options are silently ignored and generation/checking can report success with materially different behavior.
Evidence
Acceptance criteria
- Reject every unknown flag with a stable non-zero diagnostic.
- Reject unexpected positional values where unsupported.
- Add regression tests to both CLIs, including close misspellings of destructive/output flags.
- Preserve documented compatibility flags.
Parent: #1332
Priority
P1
Problem
The OpenAPI and RPC codegen CLIs parse known flags by lookup but do not reject leftover unknown flags. Misspelled public options are silently ignored and generation/checking can report success with materially different behavior.
Evidence
packages/openapi-spec/src/libs/cli.tsandpackages/rpc-codegen/src/libs/cli.tsconsume known flags without validating the full argv set.Acceptance criteria
Parent: #1332