Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update readme to replace --level option with -O
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
commit d11d6eec2bd2297d0719c6757716d675de29a265
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