yargs / yargs/yargs

Easier way to disable type hints in output

Open
#969 10 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triaged
Dominant language
JavaScript
Stars
11.5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

There's a previous question about [boolean] in --help and --version #319, with this suggested workaround:

yargs.getOptions().boolean.splice(-2);

However, this feels like a workaround indeed :) How about some global switch like this?

yargs.disableTypesInOutput().etc;

Contributor guide

Open the contributing guide

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 reviewing issue #319 and the existing yargs.getOptions().boolean workaround for type hints in --help and --version output. Trace how those two outputs are generated and determine the scope of a global disable switch; done means both outputs omit the type hints without mutating internal option arrays.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.