Skip to content

Unknown --targets values silently discarded, --write becomes a misleading no-op #9

Description

@royalpinto007

Problem

run([dir, '--write', '--targets', 'bogus']) exits 0, writes nothing, and prints "Run with --write..." even though --write was passed: unknown targets are silently discarded.

Where

src/cli.js (targets filtered against TARGETS, unknowns dropped) + src/report.js (misleading hint).

Acceptance

Add a failing test first with --targets bogus, expecting exit 2 naming the valid targets. 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