Browse Source

v0.2.0 - a bit more option parsing; fix run with empty JSON options; added more excluded files; changed excluded parsing; a bit more error messages; added PHP hashbang and made file executable

master
parent
commit
dd3c912aeb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      dir2json.php

+ 2
- 1
dir2json.php View File

@@ -47,7 +47,8 @@ function dir2json($dir)
} }


// Long and short help opts // Long and short help opts
if ($argv[1] === "-h" || $argv[1] === "--help")
$param = isset($argv[1]) ? $argv[1] : '';
if ($param === "-h" || $param === "--help")
{ {
echo <<<EOT echo <<<EOT
------------------------------------------------------ ------------------------------------------------------


Loading…
Cancel
Save