protected function execute(InputInterface $input, OutputInterface $output)
{
$name = $input->getArgument('name');
try {
if ('@' === $name[0]) {
$this->describeSet($output, $name);
return;
}
$this->describeRule($output, $name);
} catch (DescribeNameNotFoundException $e) {
$alternative = $this->getAlternative($e->getType(), $name);
$this->describeList($output, $e->getType());
throw new \InvalidArgumentException(sprintf('%s %s not found.%s', ucfirst($e->getType()), $name, null === $alternative ? '' : ' Did you mean "' . $alternative . '"?'));
}
}