Skip to content

Commit 554853b

Browse files
See clean-css#30 - explains what "-O" prefix is.
1 parent b12305f commit 554853b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ clean-css-cli 4.3 introduces the following changes / features:
109109
-d, --debug Shows debug information (minification time & compression efficiency)
110110
-f, --format <options> Controls output formatting, see examples below
111111
-o, --output [output-file] Use [output-file] as output instead of STDOUT
112-
-O <n> [optimizations] Turn on level <n> optimizations; optionally accepts a list of fine-grained options, defaults to `1`, see examples below
112+
-O <n> [optimizations] Turn on level <n> optimizations; optionally accepts a list of fine-grained options, defaults to `1`, IMPORTANT: the prefix is O (a capital o letter), NOT a 0 (zero, a number)
113113
--inline [rules] Enables inlining for listed sources (defaults to `local`)
114114
--inline-timeout [seconds] Per connection timeout when fetching remote stylesheets (defaults to 5 seconds)
115115
--remove-inlined-files Remove files inlined in <source-file ...> or via `@import` statements

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function cli(process, beforeMinifyCallback) {
2828
.option('-d, --debug', 'Shows debug information (minification time & compression efficiency)')
2929
.option('-f, --format <options>', 'Controls output formatting, see examples below')
3030
.option('-o, --output [output-file]', 'Use [output-file] as output instead of STDOUT')
31-
.option('-O <n> [optimizations]', 'Turn on level <n> optimizations; optionally accepts a list of fine-grained options, defaults to `1`, see examples below', function (val) { return Math.abs(parseInt(val)); })
31+
.option('-O <n> [optimizations]', 'Turn on level <n> optimizations; optionally accepts a list of fine-grained options, defaults to `1`, see examples below, IMPORTANT: the prefix is O (a capital o letter), NOT a 0 (zero, a number)', function (val) { return Math.abs(parseInt(val)); })
3232
.option('--inline [rules]', 'Enables inlining for listed sources (defaults to `local`)')
3333
.option('--inline-timeout [seconds]', 'Per connection timeout when fetching remote stylesheets (defaults to 5 seconds)', parseFloat)
3434
.option('--remove-inlined-files', 'Remove files inlined in <source-file ...> or via `@import` statements')

0 commit comments

Comments
 (0)