Skip to content

Commit

Permalink
Update readme to replace --level option with -O
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davidjb authored May 5, 2021
1 parent bc43efc commit d11d6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ cleancss --inline 'local,remote,!fonts.googleapis.com' one.css
## Optimization levels
The `--level` option can be either `0`, `1` (default), or `2`, e.g.
The `-O` option can be either `0`, `1` (default), or `2`, e.g.
```shell
cleancss --level 2 one.css
cleancss -O2 one.css
```
or a fine-grained configuration given via a string.
Expand Down

0 comments on commit d11d6ee

Please sign in to comment.