Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / UpdateCommand.php
index dd1f4eea584b93ce3bd5a60893526110a04f9bc0..923970a7e05b0807292f39360c5173ba6cfce153 100644 (file)
@@ -81,13 +81,13 @@ class UpdateCommand extends Command
             ->setHelp($this->trans('commands.generate.update.help'))
             ->addOption(
                 'module',
-                '',
+                null,
                 InputOption::VALUE_REQUIRED,
                 $this->trans('commands.common.options.module')
             )
             ->addOption(
                 'update-n',
-                '',
+                null,
                 InputOption::VALUE_REQUIRED,
                 $this->trans('commands.generate.update.options.update-n')
             );
@@ -102,7 +102,7 @@ class UpdateCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
-            return;
+            return 1;
         }
 
         $module = $input->getOption('module');
@@ -122,6 +122,8 @@ class UpdateCommand extends Command
         $this->generator->generate($module, $updateNumber);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
+
+        return 0;
     }
 
     protected function interact(InputInterface $input, OutputInterface $output)