File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function usage() {
34
34
35
35
"--lang " =>
36
36
"[Optional] Language file to use for the result (en-us by default). " ,
37
-
37
+
38
38
"--max-errors " =>
39
39
"[Optional] Defines how many errors are still allowed for a pass (0 by default) " ,
40
40
@@ -111,15 +111,15 @@ function usage() {
111
111
$ i ++;
112
112
$ options ['config ' ] = $ _SERVER ['argv ' ][$ i ];
113
113
break ;
114
-
114
+
115
115
case "--debug " :
116
116
$ options ['debug ' ] = true ;
117
117
break ;
118
118
119
119
case "--linecount " :
120
120
$ options ['linecount ' ] = true ;
121
121
break ;
122
-
122
+
123
123
case "--max-errors " :
124
124
$ i ++;
125
125
$ options ['max-errors ' ] = $ _SERVER ['argv ' ][$ i ];
@@ -176,7 +176,7 @@ function usage() {
176
176
echo "\nPlease specify a source directory/file using --src option. \n\n" ;
177
177
usage ();
178
178
}
179
- if (! $ options ['max-errors ' ]) {
179
+ if (isset ( $ options ['max-errors ' ]) && $ options [ ' max-errors ' ] === '' ) {
180
180
echo "\nPlease specify a number when using --max-errors option. \n\n" ;
181
181
usage ();
182
182
}
You can’t perform that action at this time.
0 commit comments