[TASK] Now using arguments from commandline.
This commit is contained in:
parent
9342827940
commit
e4dca73a14
4
Main.php
4
Main.php
|
@ -3,7 +3,9 @@ require_once "CharColorConverter.class.php";
|
||||||
require_once "BoxImage.class.php";
|
require_once "BoxImage.class.php";
|
||||||
require_once "FileImageConverter.class.php";
|
require_once "FileImageConverter.class.php";
|
||||||
|
|
||||||
|
$filename = $argv[1];
|
||||||
|
|
||||||
$converter = new FileImageConverter();
|
$converter = new FileImageConverter();
|
||||||
$converter->convertFile("test.jpg");
|
$converter->convertFile($filename);
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue