Exemple #1
0
         print '[Command opts] ';
         print_r($result->options);
         print '[Command args] ';
         print_r($result->args);
     }
     //<-- end if -->
     if ($varmode) {
         print_r($general->getVars(get_defined_vars()));
     }
     //<-- end if -->
     exit(0);
 }
 //<-- end if -->
 // execute program
 if ($stdin) {
     $files = $general->readSTDIN();
     $files = $general->lines2Array($files);
 }
 //<-- end if -->
 $files = $general->getFullPath($files);
 $openmeta = new openmeta($files, $thisProjectDir);
 if ($spotlight) {
     if ($addTag) {
         $spotlightTags = str_replace(',', ' ', $addTag);
         $openmeta->addSpotlightTags($spotlightTags, $prefix);
     }
     //<-- end if -->
     if ($setTag) {
         $spotlightTags = str_replace(',', ' ', $setTag);
         $openmeta->setSpotlightTags($spotlightTags, $prefix);
     }