From c3e673315a5dc7df5b198a229019bf4d6ceab871 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 5 Sep 2013 13:52:55 +0300 Subject: [PATCH] Move `-debug` lower in options. Also, update the help screen. --- History.md | 2 +- README.md | 6 +++--- bin/cleancss | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/History.md b/History.md index b2a4565d..8ec40055 100644 --- a/History.md +++ b/History.md @@ -6,7 +6,7 @@ * Fixed issue [#84](https://github.com/GoalSmashers/clean-css/issues/84) - support for `@import` with media queries. * Fixed issue [#124](https://github.com/GoalSmashers/clean-css/issues/124) - raise error on broken imports. * Fixed issue [#126](https://github.com/GoalSmashers/clean-css/issues/126) - proper CSS expressions handling. -* Fixed issue [#129](https://github.com/GoalSmashers/clean-css/issues/129) - rebasing imported urls. +* Fixed issue [#129](https://github.com/GoalSmashers/clean-css/issues/129) - rebasing imported URLs. * Fixed issue [#130](https://github.com/GoalSmashers/clean-css/issues/130) - better code modularity. * Fixed issue [#135](https://github.com/GoalSmashers/clean-css/issues/135) - require node.js 0.8+. * Renamed lib's `debug` option to `benchmark` when doing per-minification benchmarking. diff --git a/README.md b/README.md index ff321ab1..6a97ccb2 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,14 @@ cleancss [options] -h, --help Output usage information -v, --version Output the version number --d, --debug Shows debug information (minification time & compression efficiency) --e, --remove-empty Remove empty declarations (e.g. a{}) +-e, --remove-empty Remove empty declarations, e.g. a{} -b, --keep-line-breaks Keep line breaks ---s0 Remove all special comments (i.e. /*! special comment */) +--s0 Remove all special comments, i.e. /*! comment */ --s1 Remove all special comments but the first one -r, --root [root-path] A root path to which resolve absolute @import rules and rebase relative URLs -o, --output [output-file] Use [output-file] as output instead of STDOUT -s, --skip-import Disable the @import processing +-d, --debug Shows debug information (minification time & compression efficiency) ``` #### Examples: diff --git a/bin/cleancss b/bin/cleancss index e241cd79..4c903587 100755 --- a/bin/cleancss +++ b/bin/cleancss @@ -16,14 +16,14 @@ var isWindows = process.platform == 'win32'; commands .version(buildVersion, '-v, --version') .usage('[options] ') - .option('-d, --debug', 'Shows debug information (minification time & compression efficiency)') - .option('-e, --remove-empty', 'Remove empty declarations (e.g. a{})') + .option('-e, --remove-empty', 'Remove empty declarations, e.g. .a{}') .option('-b, --keep-line-breaks', 'Keep line breaks') - .option('--s0', 'Remove all special comments (i.e. /*! special comment */)') + .option('--s0', 'Remove all special comments, i.e. /*! comment */') .option('--s1', 'Remove all special comments but the first one') .option('-r, --root [root-path]', 'Set a root path to which resolve absolute @import rules') - .option('-o, --output [output-file]', 'Use [output-file] as output instead of stdout') - .option('-s, --skip-import', 'Disable the @import processing'); + .option('-o, --output [output-file]', 'Use [output-file] as output instead of STDOUT') + .option('-s, --skip-import', 'Disable the @import processing') + .option('-d, --debug', 'Shows debug information (minification time & compression efficiency)'); commands.on('--help', function() { util.puts(' Examples:\n'); -- 2.34.1