Skip to content
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: strict mode should not fail for hidden options #949

Merged
merged 1 commit into from Sep 3, 2017
Merged

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Sep 3, 2017

Address a bug @satazor found related to strict() mode firing for hidden options -- in the process I cleaned up strict mode logic for options a bit ... it seems like simply looking at the aliases map covers most of our bases.

fixes #948

@bcoe bcoe merged commit 0e0c58d into master Sep 3, 2017
@bcoe bcoe deleted the fix-948 branch September 3, 2017 21:25
@bcoe
Copy link
Member Author

bcoe commented Sep 3, 2017

@satazor I've released this to the next tag of yargs; would love your help testing since yargs@9.x is shaping up to be a somewhat large release:

npm i yargs@next --save

@satazor
Copy link
Member

satazor commented Sep 4, 2017

I can confirm it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hidden option is not recognized
2 participants