Skip to content

Unknown flags silently ignored #15

Description

@royalpinto007

Problem

--wriet runs as report-only with exit 0: dashed unknowns fall through the parser with no error. A typo silently changes what the command does.

Where

src/cli.js (parse: no else-branch for unknown dashed flags).

Acceptance

Add a failing test first asserting run(["--wriet"], ...) exits 2 naming the unknown flag. Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions