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

Add suggestion to invalid cli flag #12

Open
egoist opened this issue Jan 6, 2018 · 1 comment
Open

Add suggestion to invalid cli flag #12

egoist opened this issue Jan 6, 2018 · 1 comment

Comments

@egoist
Copy link
Collaborator

egoist commented Jan 6, 2018

> node cli.js --fo
> invalid cli flag `--fo`, did you mean `--foo`?
@egoist
Copy link
Collaborator Author

egoist commented Dec 2, 2018

maybe we can add an event for unknown options and leave this to user-land:

cli.on('unknown:option', option => {
  // Check if there's similar option name
})

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