yargs / yargs/yargs-parser

dot-notation doesn't respect strip-dashed

Open
#223 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug dot-notation p2
Dominant language
JavaScript
Stars
519
Forks
129
Avg merge
1h 34m
Merged PRs (30d)
1

Description

Hi!

With "strip-dashed": true

$ cli --dashed-will-be-stripped --here.it-will-not
{
  dashedWillBeStripped: true,
  here: { 'it-will-not': true, itWillNot: true }
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown CLI arguments and compare the nested output when strip-dashed is enabled. Trace the parser entry point handling dashed names and dot notation, then verify that the nested key is normalized consistently and the duplicate key is no longer produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.