Skip to content

cli: unknown flags silently swallow the next argument #19

Description

@JavaGT

Lane: CLI/UX (sweep 3, F5)
Unknown minimist flags aren't declared (cli/pbjs.js:53-69, cli/pbts.js:47-63), so --bogusflag test.proto consumes test.proto as the flag's value; the user sees the usage banner (exit 1) with a misleading cause. Reproduced live.

Verdicts: luna Downgrade Speculative (outcome is a usage failure, not silent success); grok Confirm Worth exploring (misleading cause). Recorded as Worth exploring with the low-severity framing.

Upstream: no hits.

Decision question: Adopt — warn/reject on unrecognized options (unknown callback or known-flag check)?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions