setName('backup:data') ->addArgument('tables', Argument::REQUIRED, 'backup tables') ->setDescription('backup data you need'); } protected function execute(Input $input, Output $output) { $tables = $this->input->getArgument('tables'); (new BackUpDatabase)->done($tables); $output->info('succeed!'); } }