From: Jakub Pawlowicz Date: Fri, 21 Aug 2015 06:25:22 +0000 (+0100) Subject: Orders CLI options. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=57f0e7811ee1e94ec56070874f959e0d730d2911;p=clean-css.git Orders CLI options. --- diff --git a/README.md b/README.md index 7f18220b..1e8e330b 100644 --- a/README.md +++ b/README.md @@ -33,27 +33,27 @@ you use `` as the very last argument to avoid potential issues): ``` cleancss [options] source-file, [source-file, ...] --h, --help Output usage information --v, --version Output the version number --b, --keep-line-breaks Keep line breaks ---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 @import processing ---skip-rebase Disable URLs rebasing ---skip-advanced Disable advanced optimizations - ruleset reordering & merging reduction, etc. ---skip-aggressive-merging Disable property merging based on their order ---skip-media-merging Disable `@media` merging ---skip-restructuring Disable restructuring optimizations ---skip-shorthand-compacting Disable shorthand compacting ---rounding-precision [N] Rounds to `N` decimal places. Defaults to 2. -1 disables rounding --c, --compatibility [ie7|ie8] Force compatibility mode (see Readme for advanced examples) ---source-map Enables building input's source map ---source-map-inline-sources Enables inlining sources inside source map's `sourcesContent` field ---semantic-merging Enables semantic merging mode by assuming BEM-like content (warning, this may break your styling!) --d, --debug Shows debug information (minification time & compression efficiency) +-h, --help output usage information +-v, --version output the version number +-b, --keep-line-breaks Keep line breaks +-c, --compatibility [ie7|ie8] Force compatibility mode (see Readme for advanced examples) +-d, --debug Shows debug information (minification time & compression efficiency) +-o, --output [output-file] Use [output-file] as output instead of STDOUT +-r, --root [root-path] Set a root path to which resolve absolute @import rules +-s, --skip-import Disable @import processing +-t, --timeout [seconds] Per connection timeout when fetching remote @imports (defaults to 5 seconds) +--rounding-precision [n] Rounds to `N` decimal places. Defaults to 2. -1 disables rounding +--s0 Remove all special comments, i.e. /*! comment */ +--s1 Remove all special comments but the first one +--semantic-merging Enables unsafe mode by assuming BEM-like semantic stylesheets (warning, this may break your styling!) +--skip-advanced Disable advanced optimizations - ruleset reordering & merging +--skip-aggressive-merging Disable properties merging based on their order +--skip-media-merging Disable @media merging +--skip-rebase Disable URLs rebasing +--skip-restructuring Disable restructuring optimizations +--skip-shorthand-compacting Disable shorthand compacting +--source-map Enables building input's source map +--source-map-inline-sources Enables inlining sources inside source maps ``` #### Examples: diff --git a/bin/cleancss b/bin/cleancss index d7a96f0d..0ff74f7c 100755 --- a/bin/cleancss +++ b/bin/cleancss @@ -16,24 +16,24 @@ commands .version(buildVersion, '-v, --version') .usage('[options] source-file, [source-file, ...]') .option('-b, --keep-line-breaks', 'Keep line breaks') - .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('-c, --compatibility [ie7|ie8]', 'Force compatibility mode (see Readme for advanced examples)') + .option('-d, --debug', 'Shows debug information (minification time & compression efficiency)') .option('-o, --output [output-file]', 'Use [output-file] as output instead of STDOUT') + .option('-r, --root [root-path]', 'Set a root path to which resolve absolute @import rules') .option('-s, --skip-import', 'Disable @import processing') - .option('--skip-rebase', 'Disable URLs rebasing') + .option('-t, --timeout [seconds]', 'Per connection timeout when fetching remote @imports (defaults to 5 seconds)') + .option('--rounding-precision [n]', 'Rounds to `N` decimal places. Defaults to 2. -1 disables rounding', parseInt) + .option('--s0', 'Remove all special comments, i.e. /*! comment */') + .option('--s1', 'Remove all special comments but the first one') + .option('--semantic-merging', 'Enables unsafe mode by assuming BEM-like semantic stylesheets (warning, this may break your styling!)') .option('--skip-advanced', 'Disable advanced optimizations - ruleset reordering & merging') .option('--skip-aggressive-merging', 'Disable properties merging based on their order') .option('--skip-media-merging', 'Disable @media merging') + .option('--skip-rebase', 'Disable URLs rebasing') .option('--skip-restructuring', 'Disable restructuring optimizations') .option('--skip-shorthand-compacting', 'Disable shorthand compacting') - .option('--rounding-precision [n]', 'Rounds to `N` decimal places. Defaults to 2. -1 disables rounding', parseInt) - .option('-c, --compatibility [ie7|ie8]', 'Force compatibility mode (see Readme for advanced examples)') .option('--source-map', 'Enables building input\'s source map') - .option('--source-map-inline-sources', 'Enables inlining sources inside source maps') - .option('--semantic-merging', 'Enables unsafe mode by assuming BEM-like semantic stylesheets (warning, this may break your styling!)') - .option('-t, --timeout [seconds]', 'Per connection timeout when fetching remote @imports (defaults to 5 seconds)') - .option('-d, --debug', 'Shows debug information (minification time & compression efficiency)'); + .option('--source-map-inline-sources', 'Enables inlining sources inside source maps'); commands.on('--help', function () { console.log(' Examples:\n');