예제 #1
0
파일: Test.php 프로젝트: HaldunA/phpwebsite
 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;
     }
 }