Skip to content

Option with three or more trailing hyphens parsed as positional argument #433

@0x2b3bfa0

Description

@0x2b3bfa0

Description

[email protected] and later versions interpret options with three or more trailing hyphens as positional parameters. This issue only happens when options and values are separated with an equal sign.

Actual behavior

> require('yargs-parser')(["--option=---"])
{ _: [ '--option=---' ] }

Desired behavior

> require('yargs-parser')(["--option=---"])
{ _: [], option: '---' }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions