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

Update readme to replace --level option with -O #68

Merged
merged 1 commit into from
May 5, 2021

Conversation

davidjb
Copy link
Contributor

@davidjb davidjb commented May 5, 2021

This change removes mention of the --level option which never existed. In versions earlier than 5.0.0, clean-css-cli used to accept the invalid option silently. With versions > 5.0.0, trying to use the option results in the following: error: unknown option '--level'. The root cause of the change the upgrade to commander v7.0.0, where unknown (excess) command arguments are now raised as an error.

For interest, I was using the option because Bootstrap previously used it in their package.json.

This change removes mention of the `--level` option which never existed. In versions earlier than 5.0.0, clean-css-cli used to accept the invalid option silently.  With versions > 5.0.0, trying to use the option results in the following: `error: unknown option '--level'`.  The root cause of the change the upgrade to [commander v7.0.0](tj/commander.js#1409), where unknown (excess) command arguments are now raised as an error.
@davidjb davidjb changed the title Update readme to replace --level option with -O Update readme to replace --level option with -O May 5, 2021
@jakubpawlowicz
Copy link
Collaborator

Hi @davidjb - many thanks for spotting this! You are right, there were never a --level option in the CLI. Merging right away.

@jakubpawlowicz jakubpawlowicz merged commit 049e399 into clean-css:master May 5, 2021
@davidjb
Copy link
Contributor Author

davidjb commented May 5, 2021

No problem @jakubpawlowicz - I had to go digging to understand what happened on upgrading from v4 to v5..and turns out it was never there at all 🤷‍♂️

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.

2 participants