From e4dca73a14888e523ddbe435ad67082dc5195298 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 28 Dec 2010 19:42:16 +0000 Subject: [PATCH] [TASK] Now using arguments from commandline. --- Main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Main.php b/Main.php index cbb8177..4935287 100644 --- a/Main.php +++ b/Main.php @@ -3,7 +3,9 @@ require_once "CharColorConverter.class.php"; require_once "BoxImage.class.php"; require_once "FileImageConverter.class.php"; +$filename = $argv[1]; + $converter = new FileImageConverter(); -$converter->convertFile("test.jpg"); +$converter->convertFile($filename); ?> \ No newline at end of file