Permalink
Browse files

Add --mask as an option to the CLI

  • Loading branch information...
hughsk committed Nov 26, 2012
1 parent bdc3346 commit f743eab834afbde36997fe79b159d1b07d530a28
Showing with 6 additions and 3 deletions.
  1. +1 −0 README.md
  2. +5 −3 bin/kss-node
View
@@ -23,6 +23,7 @@ Options:
-y, --stylus Compile and include a Stylus stylesheet [string]
-S, --sass Compile and include a SASS stylesheet [string]
-c, --css Compile and include a CSS stylesheet [string]
+ -m, --mask Use a custom mask for detecting stylesheets [string]
-i, --init Create a new styleguide template to work from
```
View
@@ -22,8 +22,6 @@ var kss = require(__dirname + '/../lib/kss.js'),
},
KSS_FAILED = false, argv;
-
-
/**
* CLI argument parsing, thanks to Substack's optimist.
* @type {Object}
@@ -60,6 +58,10 @@ argv = require('optimist')
.alias('c', 'css')
.describe('c', 'Compile and include a CSS stylesheet')
+ .string('m')
+ .alias('m', 'mask')
+ .describe('m', 'Use a custom mask for detecting stylesheets, e.g. "*.css"')
+
.alias('i', 'init')
.describe('i', 'Create a new styleguide template to work from')
@@ -134,7 +136,7 @@ process.nextTick(function() {
multiline : true,
markdown : true,
markup : true,
- mask : preCompiler.mask
+ mask : argv.mask || preCompiler.mask
}, function(err, sg) {
styleguide = sg;

0 comments on commit f743eab

Please sign in to comment.