oops, fixed command line tool

This commit is contained in:
cloudhead 2010-03-05 19:17:32 -05:00
parent 5ab2a633dd
commit 3175652f76

View File

@ -10,7 +10,9 @@ var less = require('lib/less/adapters/server');
var args = process.argv.slice(1);
args = args.filter(function (arg) {
if (arg = arg.match(/^--?([a-z][a-z-]*)$/i)) { arg = arg[1] }
var match;
if (match = arg.match(/^--?([a-z][a-z-]*)$/i)) { arg = match[1] }
else { return arg }
switch (arg) {