addArgument('type', InputArgument::OPTIONAL, default: 'all'); } protected function execute(InputInterface $input, OutputInterface $output) { $this->updateIndices($input->getArgument('type')); $output->writeln('Done - indices updated'); return 0; } }