src/Command/Generate/ScaffoldCommand.php
protected function runGenerateModule() : void
    {
        $command = $this->getApplication()->find('generate:module');

        $arguments = [
            'command' => 'generate:module',
            'module' => $this->getInput()->getArgument('module')
        ];
        $command->run(
            new ArrayInput($arguments),
            $this->getOutput()
        );
    }
protected function runGenerateModule() : void
    {
        $command = $this->getApplication()->find('generate:module');

        $arguments = [
            'command' => 'generate:module',
            'module' => $this->getInput()->getArgument('module')
        ];
        $command->run(
            new ArrayInput($arguments),
            $this->getOutput()
        );
    }
Generate Module

@return void
@throws \Symfony\Component\Console\Exception\ExceptionInterface