Skip to content

Commit d11d6ee

Browse files
authored
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.
1 parent bc43efc commit d11d6ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ cleancss --inline 'local,remote,!fonts.googleapis.com' one.css
238238
239239
## Optimization levels
240240
241-
The `--level` option can be either `0`, `1` (default), or `2`, e.g.
241+
The `-O` option can be either `0`, `1` (default), or `2`, e.g.
242242
243243
```shell
244-
cleancss --level 2 one.css
244+
cleancss -O2 one.css
245245
```
246246
247247
or a fine-grained configuration given via a string.

0 commit comments

Comments
 (0)