fixed some jshint errors

This commit is contained in:
Oliver Becker
2013-10-27 15:15:46 +01:00
parent 5baa4445bc
commit 6367b96a2a

View File

@@ -188,14 +188,15 @@ function writeFile(filename, content) {
return false;
}
if (match = arg.match(/^--?([a-z][0-9a-z-]*)(?:=(.*))?$/i)) { arg = match[1] } // was (?:=([^\s]*)), check!
else { return arg }
if (match = arg.match(/^--?([a-z][0-9a-z-]*)(?:=(.*))?$/i)) { arg = match[1]; } // was (?:=([^\s]*)), check!
else { return arg; }
switch (arg) {
case 'v':
case 'version':
console.log("lessc " + less.version.join('.') + " (LESS Compiler) [JavaScript]");
continueProcessing = false;
break;
case 'verbose':
options.verbose = true;
break;
@@ -215,6 +216,7 @@ function writeFile(filename, content) {
//TODO
// require('../lib/less/lessc_helper').printUsage();
continueProcessing = false;
break;
case 'x':
case 'compress':
options.compress = true;