Skip to content

--flag=value form silently misparsed #28

Description

@royalpinto007

Problem

--fail-on=high becomes key "fail-on=high" (unknown, ignored): the gate silently keeps the default threshold.

Where

src/cli.ts (arg.slice(2) with no = split).

Acceptance

Add a failing test first asserting parseArgs(["audit", "--fail-on=high"]) yields flags["fail-on"] === "high". 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