Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / HelpCommand.php
index afbf98a70a7353e2cf165fbd92817921154cfec2..678ce71434f22455b65e413e2530d66837a85fc8 100644 (file)
@@ -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)