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

Type is not always enforced #74

Closed
sindresorhus opened this issue Dec 29, 2017 · 0 comments
Closed

Type is not always enforced #74

sindresorhus opened this issue Dec 29, 2017 · 0 comments

Comments

@sindresorhus
Copy link
Owner

From marionebl/svg-term-cli@fe5d2a6#r26544549

Test case:

node test.js --cursor=false
// test.js
const cli = require('meow')(``, {
    flags: {
        cursor: { type: 'boolean' }
    }
});
console.log(typeof cli.flags.cursor); // string

It should output false.

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

1 participant