/**
* {@inheritdoc}
*/
public function handle(Args $args, IO $io, Command $command)
{
$application = $command->getApplication();
if ($args->isArgumentSet('command')) {
$theCommand = $application->getCommand($args->getArgument('command'));
$usage = new CommandHelp($theCommand);
} else {
$usage = new ApplicationHelp($application);
}
$usage->render($io);
return 0;
}