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

allow support for falsy values like 0 in tagged literal #45

Merged
merged 2 commits into from
Aug 10, 2017
Merged

allow support for falsy values like 0 in tagged literal #45

merged 2 commits into from
Aug 10, 2017

Conversation

JamesKyburz
Copy link
Contributor

Without the undefined check the lookup key with %s won't be found when passing falsy values.

@bcoe
Copy link
Member

bcoe commented May 17, 2017

@JamesKyburz good catch 👍 mind adding a little regression test when you get two secs?

@JamesKyburz
Copy link
Contributor Author

will do!

@JamesKyburz
Copy link
Contributor Author

Sorry for the delay, I have now added a test for falsy arguments to the pull request :)

@JamesKyburz
Copy link
Contributor Author

Could this please be merged?

@bcoe
Copy link
Member

bcoe commented Aug 10, 2017

@JamesKyburz sorry for the slow reply 👍 have been trying to dig myself out of an OSS backlog.

Thanks for the contribution!

@bcoe bcoe merged commit c926123 into yargs:master Aug 10, 2017
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.

None yet

2 participants