if (isset($options['threshold']) && intval($options['threshold'])) { $threshold = $options['threshold']; } else { $threshold = false; } if (isset($options['no-location'])) { $noLocation = '--no-location '; } else { $noLocation = ''; } if (isset($options['no-fuzzy'])) { $noFuzzy = true; } else { $noFuzzy = false; } $reqLangs = Cli::parseLanguageCodes($options['lang']); $groups = array(); // @todo FIXME: Code duplication with sync-group.php if (isset($options['group'])) { // Explode parameter $groupIds = explode(',', trim($options['group'])); // Get groups and add groups to array foreach ($groupIds as $groupId) { $group = MessageGroups::getGroup($groupId); if ($group !== null) { $groups[$groupId] = $group; } else { STDERR("Invalid group {$groupId}"); } } } else {