option('name'); if (preg_match(ExportPaliSynonyms::FILENAME_PATTERN, $name) !== 1) { $this->error('--name must be a plain file name matching '.ExportPaliSynonyms::FILENAME_PATTERN); return self::FAILURE; } try { $result = $service->updatePaliSynonymsPath($name); } catch (Exception $e) { $this->error('Update failed: '.$e->getMessage()); return self::FAILURE; } $this->info("synonyms_path => {$result['path']}"); return self::SUCCESS; } }