X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FGenerate%2FHelpCommand.php;h=678ce71434f22455b65e413e2530d66837a85fc8;hp=afbf98a70a7353e2cf165fbd92817921154cfec2;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drupal/console/src/Command/Generate/HelpCommand.php b/vendor/drupal/console/src/Command/Generate/HelpCommand.php index afbf98a70..678ce7143 100644 --- a/vendor/drupal/console/src/Command/Generate/HelpCommand.php +++ b/vendor/drupal/console/src/Command/Generate/HelpCommand.php @@ -76,13 +76,13 @@ class HelpCommand extends Command ->setHelp($this->trans('commands.generate.help.help')) ->addOption( 'module', - '', + null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module') ) ->addOption( 'description', - '', + null, InputOption::VALUE_OPTIONAL, $this->trans('commands.generate.module.options.description') ); @@ -97,7 +97,7 @@ class HelpCommand extends Command // @see use Drupal\Console\Command\ConfirmationTrait::confirmGeneration if (!$this->confirmGeneration($io)) { - return; + return 1; } $module = $input->getOption('module'); @@ -118,6 +118,8 @@ class HelpCommand extends Command ->generate($module, $description); $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']); + + return 0; } protected function interact(InputInterface $input, OutputInterface $output)