src/TweedeGolf/Generator/Console/GenerateCommand.php
protected function showGeneratorHelp(GeneratorInterface $generator, OutputInterface $output)
    {
        $definition = new InputDefinition($generator->getDefinition());

        $output->writeln("<comment>Generator:</comment> <info>{$generator->getName()}</info>");
        $output->writeln(" {$generator->getDescription()}");
        $output->writeln("");

        $output->writeln("<comment>Usage:</comment>");
        $output->writeln(" {$this->getName()} {$generator->getName()} {$definition->getSynopsis()}");
        $output->writeln("");

        $descriptor = new DescriptorHelper();
        $descriptor->describe($output, $definition);
    }
protected function showGeneratorHelp(GeneratorInterface $generator, OutputInterface $output)
    {
        $definition = new InputDefinition($generator->getDefinition());

        $output->writeln("<comment>Generator:</comment> <info>{$generator->getName()}</info>");
        $output->writeln(" {$generator->getDescription()}");
        $output->writeln("");

        $output->writeln("<comment>Usage:</comment>");
        $output->writeln(" {$this->getName()} {$generator->getName()} {$definition->getSynopsis()}");
        $output->writeln("");

        $descriptor = new DescriptorHelper();
        $descriptor->describe($output, $definition);
    }
protected function showGeneratorHelp ( GeneratorInterface $ generator , OutputInterface $ output ) { $ definition = new InputDefinition ( $ generator -> getDefinition ( ) ) ; $ output -> writeln ( "<comment>Generator:</comment> <info>{$generator->getName()}</info>" ) ; $ output -> writeln ( " {$generator->getDescription()}" ) ; $ output -> writeln ( "" ) ; $ output -> writeln ( "<comment>Usage:</comment>" ) ; $ output -> writeln ( " {$this->getName()} {$generator->getName()} {$definition->getSynopsis()}" ) ; $ output -> writeln ( "" ) ; $ descriptor = new DescriptorHelper ( ) ; $ descriptor -> describe ( $ output , $ definition ) ; }
Show the help for a single generator.
@param GeneratorInterface $generator
@param OutputInterface    $output
Show the help for a single generator .