diff --git a/bin/latte-lint b/bin/latte-lint index c82223d9e..eecb1c3c7 100755 --- a/bin/latte-lint +++ b/bin/latte-lint @@ -22,8 +22,13 @@ if ($argc < 2) { exit(1); } -$debug = in_array('--debug', $argv, true); -$strict = in_array('--strict', $argv, true); +if ($debug = in_array('--debug', $argv, true)) { + echo "Debug mode\n"; +} +if ($strict = in_array('--strict', $argv, true)) { + echo "Strict mode\n"; +} + $path = $argv[1]; $linter = new Latte\Tools\Linter(debug: $debug, strict: $strict); $ok = $linter->scanDirectory($path);