Skip to content

Commit

Permalink
latte-lint: shows information about strict/debug modes
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 11, 2023
1 parent 779be3f commit 57ed322
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/latte-lint
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57ed322

Please sign in to comment.