Skip to content

Commit

Permalink
Allow quiet mode when parsing from stdin. (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed Dec 18, 2023
1 parent cf71eb9 commit f25a986
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 f25a986

Please sign in to comment.