-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Reenable allowUnknownFlags: false
when meow#197 is fixed
#39
Comments
msabramo
changed the title
Reenable
Reenable Sep 16, 2021
allowUnknownFlags: false
when https://github.com/sindresorhus/meow/issues/197 is fixedallowUnknownFlags: false
when meow#197 is fixed
One way to fix this sooner rather than later is what I suggested in #33 (comment), but I think @sindresorhus might not want to go that way. |
msabramo
added a commit
to msabramo/chalk-cli
that referenced
this issue
Sep 27, 2021
Currently, `allowUnknownFlags: false` is commented out, which is not ideal, because the error message the user gets when using an unknown flag is pretty confusing: ``` $ chalk --foobar Input required ``` The actual problem is in meow (see meow#197), but it's been taking a while to come up with a proper fix for that (see meow#198), so I suggest using this workaround in the meantime. See: chalk#32, chalk#33, chalk#39, meow#197, meow#198
msabramo
added a commit
to msabramo/chalk-cli
that referenced
this issue
Sep 27, 2021
Currently, `allowUnknownFlags: false` is commented out, which is not ideal, because the error message the user gets when using an unknown flag is pretty confusing: ``` $ chalk --foobar Input required ``` The actual problem is in meow (see sindresorhus/meow#197), but it's been taking a while to come up with a proper fix for that (see sindresorhus/meow#198), so I suggest using this workaround in the meantime. See: chalk#32, chalk#33, chalk#39, sindresorhus/meow#197, sindresorhus/meow#198
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
cli.js
:Without this, users get strange, nonsensical errors when they provide an unknown flag:
The text was updated successfully, but these errors were encountered: