public function execute() { // Parse the po file. $p = new PoImporter($this->getOption('file')); $p->setProgressCallback(array($this, 'myOutput')); list($changes, $group) = $p->parse(); if (!count($changes)) { $this->output("No changes to import\n"); exit(0); } // Import changes to wiki. $w = new WikiWriter($changes, $group, $this->getOption('user'), !$this->hasOption('really')); $w->setProgressCallback(array($this, 'myOutput')); $w->execute(); }