Skip to content

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

Closed

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: '---' }

Activity

  1. transferred this issue fromyargs/yargson Feb 5, 2022
  2. added a commit that references this issue on Feb 5, 2022
    31d637a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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