We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84720c commit 139c3b8Copy full SHA for 139c3b8
1 file changed
lib/cli.js
@@ -14,6 +14,7 @@ program
14
.usage('[options] <file ...>')
15
.option('-v, --verbose', 'verbose mode')
16
.option('-c, --config [path]', 'configuration file path')
17
+ .option('-d, --detect', 'detect mode (would return detected options)')
18
.option('-l, --lint', 'in case some fixes needed returns an error')
19
.parse(process.argv);
20
@@ -24,6 +25,13 @@ if (!program.args.length) {
24
25
26
var configPath = program.config || (process.cwd() + '/.csscomb.json');
27
28
+if (program.detect) {
29
+ var comb = new Comb();
30
+ comb.detect();
31
+ console.log(JSON.stringify(comb.processFile(program.args[0]), false, 4));
32
+ process.exit(0);
33
+}
34
+
35
if (fs.existsSync(configPath)) {
36
var comb;
37
var config;
0 commit comments