Easier way to disable type hints in output
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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