addArgument('filename', InputArgument::REQUIRED, 'Filename of the dump to remove, as shown by aeon:dump:list'); } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $filename = (string) $input->getArgument('filename'); try { $this->dumpService->delete($filename); } catch (\Throwable $exception) { $io->error($exception->getMessage()); return Command::FAILURE; } $io->success(sprintf('Dump removed: %s', $filename)); return Command::SUCCESS; } }