From 57ed32294a53f0310b989d0bda6b135f89b0ef7a Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 11 Oct 2023 14:44:26 +0200 Subject: [PATCH] latte-lint: shows information about strict/debug modes --- bin/latte-lint | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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);