Change --inline-js to simplified --js option

This commit is contained in:
Matthew Dean
2016-10-21 16:14:01 -07:00
parent 6e6bb5d7c2
commit a45bef88dd
2 changed files with 3 additions and 3 deletions

View File

@@ -430,11 +430,11 @@ function processPluginQueue() {
case 'no-ie-compat':
options.ieCompat = false;
break;
case 'inline-js':
case 'js':
options.javascriptEnabled = true;
break;
case 'no-js':
console.error('The "--no-js" argument is deprecated. Use "--inline-js" to enable inline JavaScript.');
console.error('The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).');
break;
case 'include-path':
if (checkArgFunc(arg, match[2])) {

View File

@@ -31,7 +31,7 @@ var lessc_helper = {
console.log(" -M, --depends Outputs a makefile import dependency list to stdout.");
console.log(" --no-color Disables colorized output.");
console.log(" --no-ie-compat Disables IE compatibility checks.");
console.log(" --inline-js Enables inline JavaScript in less files");
console.log(" --js Enables inline JavaScript in less files");
console.log(" -l, --lint Syntax check only (lint).");
console.log(" -s, --silent Suppresses output of error messages.");
console.log(" --strict-imports Forces evaluation of imports.");