New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: coerce should play well with parser configuration #2308
Conversation
I noticed a subtle problem that if
|
In #1872 |
Looking at the |
@shadowspawn thanks for the contribution 😄 |
Relates to #2307 and #2161. Yargs does the coerce separately after yargs-parser, and should both apply the coerce values to the aliases and camel-case variations, but also not add them back if the parser configuration said not to include them in the results.
Use the fact that yargs-parser has already decided what variations belong in the results, and update just the naming variations already present in the results.
Fixes #2307, fixes #2311