瀏覽代碼

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
父節點
當前提交
dd3c912aeb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      dir2json.php

+ 2
- 1
dir2json.php 查看文件

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

// 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
------------------------------------------------------


Loading…
取消
儲存