From d11d6eec2bd2297d0719c6757716d675de29a265 Mon Sep 17 00:00:00 2001 From: David Beitey Date: Wed, 5 May 2021 05:14:28 +0000 Subject: [PATCH] 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](https://github.com/tj/commander.js/pull/1409), where unknown (excess) command arguments are now raised as an error. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af703b5..34df496 100644 --- a/README.md +++ b/README.md @@ -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.