diff --git a/bin/security-lint b/bin/security-lint index 93b5f33..70efad9 100755 --- a/bin/security-lint +++ b/bin/security-lint @@ -611,17 +611,17 @@ HELP; $options = []; $format = $args['format'] ?? $args['f'] ?? null; - if ($format) { + if ($format !== null && $format !== true) { $options['format'] = $format; } $severity = $args['severity'] ?? $args['s'] ?? null; - if ($severity) { + if ($severity !== null && $severity !== true) { $options['severity'] = $severity; } $output = $args['output'] ?? $args['o'] ?? null; - if ($output) { + if ($output !== null && $output !== true) { $options['output'] = $output; } @@ -640,12 +640,12 @@ HELP; $options['include'] = $include; $depth = $args['recursive-depth'] ?? $args['d'] ?? null; - if ($depth) { + if ($depth !== null && $depth !== true) { $options['recursive-depth'] = $depth; } $lang = $args['lang'] ?? $args['l'] ?? null; - if ($lang) { + if ($lang !== null && $lang !== true) { $options['lang'] = $lang; }