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

fix(options): resolve false positives in unknown options warning #2208

Merged
merged 3 commits into from
May 15, 2020

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented May 14, 2020

  • Don't give a warning for "packageManager" config option
  • Use commander.opts to retrieve options to make sure we don't get unknown properties.

Fixes #2209

* Don't give a warning for "packageManager" config option
* Use `commander.opts` to retrieve options to make sure we don't get unknown properties.
@simondel
Copy link
Member

Do we even have to write it to the config file?

@nicojs
Copy link
Member Author

nicojs commented May 15, 2020

Nope, we dont. But we did it in the past, and that will lead to a lot of warnings. I can see some use for it in the future. Let me write some more tests for this one

@nicojs
Copy link
Member Author

nicojs commented May 15, 2020

Done, added tests for all CLI options

@nicojs nicojs merged commit e3905f6 into master May 15, 2020
@nicojs nicojs deleted the fix/unknown-options branch May 15, 2020 08:23
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.

False positive for "unknown options" warning
2 participants