Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / ModuleFileCommand.php
index 33bdf7e5f8b6d0fa5055bf0d59904520da2fce67..3b08b740d35591143f5530e08f772e5e8c3d5cee 100644 (file)
@@ -64,7 +64,7 @@ class ModuleFileCommand extends Command
             ->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'));
     }
 
     /**
@@ -76,7 +76,7 @@ class ModuleFileCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io, $yes)) {
-            return;
+            return 1;
         }
 
         $machine_name =  $input->getOption('module');