protected function setArgumentHandlers()
{
return $this->addArgumentHandler(function ($script, $argument, $values) {
if (sizeof($values) !== 0) {
throw new exceptions\logic\invalidArgument(sprintf($script->getLocale()->_('Bad usage of %s, do php %s --help for more informations'), $argument, $script->getName()));
}
$script->help();
}, array('-h', '--help'), null, 'Display this help')->addArgumentHandler(function ($script, $argument, $values) {
if (sizeof($values) !== 1) {
throw new exceptions\logic\invalidArgument(sprintf($script->getLocale()->_('Bad usage of %s, do php %s --help for more informations'), $argument, $script->getName()));
}
$script->setDestinationDirectory($values[0]);
}, array('-d', '--directory'), '<directory>', $this->locale->_('Destination directory <dir>'));
}