function __construct($argv = array())
{
parent::__construct($argv);
if (!isset($this->argv[0]) || !in_array($this->argv[0], array('check', 'latest', 'upgrade', 'download'))) {
$this->usage();
exit(1);
}
$this->command = $this->argv[0];
AppLocale::requireComponents(LOCALE_COMPONENT_PKP_INSTALLER);
}