tweaks to bin/lessc

This commit is contained in:
cloudhead
2010-06-01 21:48:13 -04:00
parent 3f066d18d0
commit 0b30fe48c9
2 changed files with 5 additions and 3 deletions

View File

@@ -17,9 +17,11 @@ args = args.filter(function (arg) {
switch (arg) {
case 'v':
sys.puts("lessc " + less.version.join('.') + " (LESS Compiler)");
case 'version':
sys.puts("lessc " + less.version.join('.') + " (LESS Compiler) [JavaScript]");
process.exit(0);
case 'h':
case 'help':
sys.puts("usage: lessc source [destination]");
process.exit(0);
}
@@ -31,7 +33,7 @@ var input = args[1] && path.join(process.cwd(), args[1]),
var css, fd, tree;
if (! input) {
sys.puts("lessc: no input files\n");
sys.puts("lessc: no input files");
process.exit(1);
}

View File

@@ -4,7 +4,7 @@ var path = require('path'),
require.paths.unshift(path.join(__dirname, '..'));
var less = {
version: [2, 0, 0],
version: [1, 0, 9],
Parser: require('less/parser').Parser,
importer: require('less/parser').importer,
tree: require('less/tree'),