Commit 2b127bd8 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Accept path to dump file directory from command line

parent 51d8f57e
...@@ -43,7 +43,10 @@ echo "<pre>\n"; ...@@ -43,7 +43,10 @@ echo "<pre>\n";
// } // }
if (isset($_GET['path'])) $path=$_GET['path']; if (isset($_GET['path'])) $path=$_GET['path'];
else $path="."; else if ($argc == 2)
$path = $argv[1];
else
$path=".";
if (isset($_GET['ext'])) $extension = $_GET['ext']; if (isset($_GET['ext'])) $extension = $_GET['ext'];
else $extension = "jp4"; else $extension = "jp4";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment