We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 590cfec + 32ce48b commit e342ef1Copy full SHA for e342ef1
1 file changed
bin/jsonlint
@@ -37,7 +37,7 @@ if (isset($_SERVER['argc']) && $_SERVER['argc'] > 1) {
37
$quiet = true;
38
} else {
39
if ($arg == '-h' || $arg == '--help') {
40
- showUsage();
+ showUsage($_SERVER['argv'][0]);
41
42
$files[] = $arg;
43
}
@@ -106,9 +106,9 @@ function lintFile($file, $quiet = false)
106
107
108
// usage text function
109
-function showUsage()
+function showUsage($programPath)
110
{
111
- echo 'Usage: jsonlint file [options]'.PHP_EOL;
+ echo 'Usage: '.$programPath.' file [options]'.PHP_EOL;
112
echo PHP_EOL;
113
echo 'Options:'.PHP_EOL;
114
echo ' -q, --quiet Cause jsonlint to be quiet when no errors are found'.PHP_EOL;
0 commit comments