yargs / yargs/yargs-parser

`negation-prefix` does not work with `short-option-groups`

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
519
Forks
129
Avg merge
1h 34m
Merged PRs (30d)
1

Description

Hi, I want to use short-option-groups and I want negation-prefix to work, however, yargs parses negation prefix only if it starts with --, so I can't use -no-window. Can this be improved, please? :)

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 negation-prefix and short-option-groups are parsed, then run the existing parser tests to find the relevant coverage. Add a case for -no-window and verify that the negation prefix works with grouped short options without changing existing -- behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.