38 ->setDefinition(array(
44 ->setDescription(
'Displays help for a command')
46 The <info>%command.name%</info> command displays help
for a given command:
48 <info>php %command.full_name% list</info>
50 You can also output the help in other formats by
using the <comment>--format</comment> option:
52 <info>php %command.full_name% --format=xml list</info>
54 To display the list of available commands, please use the <info>list</info> command.
75 if (null === $this->command) {
80 @trigger_error(
'The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead.', E_USER_DEPRECATED);
86 $helper->describe($output, $this->command, array(
91 $this->command = null;