Skip to content

Commit 7e48d83

Browse files
committed
Set error code in all cases where invalid args are given. Fixes #2457
1 parent a37a742 commit 7e48d83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/lessc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ var checkArgFunc = function(arg, option) {
5151
if (!option) {
5252
console.log(arg + " option requires a parameter");
5353
continueProcessing = false;
54+
currentErrorcode = 1;
5455
return false;
5556
}
5657
return true;
@@ -61,6 +62,7 @@ var checkBooleanArg = function(arg) {
6162
if (!onOff) {
6263
console.log(" unable to parse " + arg + " as a boolean. use one of on/t/true/y/yes/off/f/false/n/no");
6364
continueProcessing = false;
65+
currentErrorcode = 1;
6466
return false;
6567
}
6668
return Boolean(onOff[2]);

0 commit comments

Comments
 (0)