Skip to content

with check accepts any unknown flag silently: --dump-drop-flags (removed) and typos print ok #2198

Closed

Description

@ehartford

AGENTS.md: "A tool that stayed silent is a bug."

with check repro.w --no-such-flag-xyz   # ok, rc 0
with check repro.w --dump-drop-flags    # ok, rc 0: the flag no longer exists in src/

--dump-drop-flags is still documented in docs/spec/toolchain/deep-debugging-tools.md and AGENTS.md (Stage Debugging). It was removed from the compiler, so a reader runs it, sees ok, and concludes there are no drop flags. A misspelled --validate-al reads as a clean validation the same way.

Expected: an unknown flag is an error naming it (and the nearest known flag), exit non-zero.

Activity

  1. ehartford commented on Oct 6, 2026

    @ehartford
    ContributorAuthor

    Fixed in #2204 (5cb113b): check/ir/run refuse an unknown flag and name the nearest; battery green on d5c6ef3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions