Skip to content
This repository
Browse code

Add --mask as an option to the CLI

  • Loading branch information...
commit f743eab834afbde36997fe79b159d1b07d530a28 1 parent bdc3346
Hugh Kennedy authored November 27, 2012

Showing 2 changed files with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. 1  README.md
  2. 8  bin/kss-node
1  README.md
Source Rendered
@@ -23,6 +23,7 @@ Options:
23 23
   -y, --stylus    Compile and include a Stylus stylesheet        [string]
24 24
   -S, --sass      Compile and include a SASS stylesheet          [string]
25 25
   -c, --css       Compile and include a CSS stylesheet           [string]
  26
+  -m, --mask      Use a custom mask for detecting stylesheets    [string]
26 27
   -i, --init      Create a new styleguide template to work from
27 28
 ```
28 29
 
8  bin/kss-node
@@ -22,8 +22,6 @@ var kss = require(__dirname + '/../lib/kss.js'),
22 22
 	},
23 23
 	KSS_FAILED = false,	argv;
24 24
 
25  
-
26  
-
27 25
 /**
28 26
  * CLI argument parsing, thanks to Substack's optimist.
29 27
  * @type {Object}
@@ -60,6 +58,10 @@ argv = require('optimist')
60 58
 	.alias('c', 'css')
61 59
 	.describe('c', 'Compile and include a CSS stylesheet')
62 60
 
  61
+	.string('m')
  62
+	.alias('m', 'mask')
  63
+	.describe('m', 'Use a custom mask for detecting stylesheets, e.g. "*.css"')
  64
+
63 65
 	.alias('i', 'init')
64 66
 	.describe('i', 'Create a new styleguide template to work from')
65 67
 
@@ -134,7 +136,7 @@ process.nextTick(function() {
134 136
 			multiline : true,
135 137
 			markdown  : true,
136 138
 			markup    : true,
137  
-			mask      : preCompiler.mask
  139
+			mask      : argv.mask || preCompiler.mask
138 140
 		}, function(err, sg) {
139 141
 			styleguide = sg;
140 142
 

0 notes on commit f743eab

Please sign in to comment.
Something went wrong with that request. Please try again.