private function getCommandFromHelpCommand(HelpCommand $helpCommand)
{
// hackish way of retrieving the command for which help was asked
$reflectionObject = new \ReflectionObject($helpCommand);
$commandProperty = $reflectionObject->getProperty('command');
$commandProperty->setAccessible(true);
return $commandProperty->getValue($helpCommand);
}