Skip to content

Commit 9c9418f

Browse files
committed
Reorder the CLI options
Move the more important options to the top
1 parent 2b075f2 commit 9c9418f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ Usage: suitcss [<input>] [<output>]
4343
Options:
4444
4545
-h, --help output usage information
46-
-V, --version output the version number
47-
-m, --minify minify output with cssnano
48-
-L, --no-lint disable stylelint and postcss-bem-linter
46+
-c, --config [path] a custom PostCSS config file
4947
-i, --import-root [path] the root directory for imported css files
48+
-w, --watch watch the input file and any imports for changes
49+
-m, --minify minify output with cssnano
5050
-e, --throw-error throw an error when any warnings are found
51-
-c, --config [path] a custom PostCSS config file
51+
-L, --no-lint disable stylelint and postcss-bem-linter
5252
-v, --verbose log verbose output for debugging
53-
-w, --watch watch the input file and any imports for changes
53+
-V, --version output the version number
5454
5555
Examples:
5656

bin/suitcss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ var writeFileSync = fs.outputFileSync;
1717
*/
1818

1919
program
20-
.version(require('../package.json').version)
2120
.usage('[<input>] [<output>]')
22-
.option('-m, --minify', 'minify output with cssnano')
23-
.option('-L, --no-lint', 'disable stylelint and postcss-bem-linter')
21+
.option('-c, --config [path]', 'a custom PostCSS config file')
2422
.option('-i, --import-root [path]', 'the root directory for imported css files')
23+
.option('-w, --watch', 'watch the input file and any imports for changes')
24+
.option('-m, --minify', 'minify output with cssnano')
2525
.option('-e, --throw-error', 'throw an error when any warnings are found')
26-
.option('-c, --config [path]', 'a custom PostCSS config file')
26+
.option('-L, --no-lint', 'disable stylelint and postcss-bem-linter')
2727
.option('-v, --verbose', 'log verbose output for debugging')
28-
.option('-w, --watch', 'watch the input file and any imports for changes');
28+
.version(require('../package.json').version);
29+
2930

3031
/**
3132
* Examples.

0 commit comments

Comments
 (0)