public function main($argv)
{
$this->addArguments();
try {
$this->cli->arguments->parse($argv);
} catch (\Exception $e) {
$this->cli->usage();
return 0;
}
if ($this->cli->arguments->get('help')) {
$this->cli->usage();
return 0;
}
return $this->execute();
}