yargs / yargs/yargs-unparser

parsing and then unparsing removes `=`

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
20
Forks
12
Avg merge
3m
Merged PRs (30d)
1

Description

I've been trying to get unparsed arguments passed on to npm6 and yargs parser+unparser turns --omit=dev that npm6 understands into ['--omit', 'dev'] which it doesn't.
I know it's not great of npm6 to do that, but it is an issue with unparser that it produces a different set of arguments.

It could use a hint from parser weather the value was given via = or not.

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

Start by tracing how yargs-unparser represents and emits values supplied with =; the issue provides the reproducing case --omit=dev and the npm6/yargs context. Confirm that parsing and then unparsing preserves the original equals form, including the existing behavior for arguments without =.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.