forked from yargs/yargs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coerce): options using coerce now displayed in help (yargs#1911)
The trick we were using of .alias("foo", "foo") to "tell" yargs-parser about a key using coerce has a bug such that help output is broken. We can instead use .key (https://github.com/yargs/yargs-parser/blob/master/lib/yargs-parser.ts#L191) which is designed for exactly our purposes (telling yargs-parser a key exists, without setting attributes such as description). Fixes yargs#1909
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters