->setName('generate:module:file')
->setDescription($this->trans('commands.generate.module.file.description'))
->setHelp($this->trans('commands.generate.module.file.help'))
- ->addOption('module', '', InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'));
+ ->addOption('module', null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'));
}
/**
// @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
if (!$this->confirmGeneration($io, $yes)) {
- return;
+ return 1;
}
$machine_name = $input->getOption('module');