Skip to content

Commit

Permalink
Allow quiet mode when parsing from stdin.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed Dec 1, 2023
1 parent 594fd64 commit 72f9c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/jsonlint
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (!empty($files)) {
} else {
//stdin linting
if ($contents = file_get_contents('php://stdin')) {
lint($contents);
lint($contents, $quiet);
} else {
fwrite(STDERR, 'No file name or json input given' . PHP_EOL);
exit(1);
Expand Down

0 comments on commit 72f9c35

Please sign in to comment.