->setHelp($this->trans('commands.generate.post.update.help'))
->addOption(
'module',
- '',
+ null,
InputOption::VALUE_REQUIRED,
$this->trans('commands.common.options.module')
)
->addOption(
'post-update-name',
- '',
+ null,
InputOption::VALUE_REQUIRED,
$this->trans('commands.generate.post.update.options.post-update-name')
);
// @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
if (!$this->confirmGeneration($io)) {
- return;
+ return 1;
}
$module = $input->getOption('module');
$this->generator->generate($module, $postUpdateName);
$this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
+
+ return 0;
}
protected function interact(InputInterface $input, OutputInterface $output)