function parseArgs() { // mapp of keys to values.. $args = Console_Getopt::ReadPHPArgV(); $vals = Console_Getopt::getopt($args, ''); //print_r($vals); $files = $vals[1]; if (!$files) { $this->error(0, "No Files supplied"); } foreach ($files as $file) { $realpath = realpath($file); if (!$realpath) { $this->error(0, "File {$path} Does not exist"); } $this->files[] = $realpath; } }