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

options parameter of callback function for check method is always undefined #2069

Closed
iddofontijn opened this issue Nov 23, 2021 · 1 comment

Comments

@iddofontijn
Copy link

According to https://yargs.js.org/docs/#api-reference-checkfn-globaltrue the callback function of .check() has an options parameter. In my experience, in version 16 it contained the available options for the specified command. But in version 17 it always returns undefined.

@shadowspawn
Copy link
Member

This was fixed in #2079 (thanks @jly36963).

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

No branches or pull requests

4 participants