Skip to content

Reserved _ key: positionals silently overwrite an explicit --_ flag #19

Description

@beogip

In validateInput (src/args.ts), toValidate spreads parsed flags and then sets toValidate._ = positionals when positionals exist. A user-declared --_ value flag is silently overwritten by the positional array, with no warning. Low-risk but a footgun in the public API. Either document _ as reserved or emit a warning when both are present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Nice to haveclaudeTrigger Claude Code to implement this issuereleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions