Skip to content

[codegen] Reject unknown OpenAPI and RPC CLI flags #1397

Description

@kang-heewon

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions