setName('config:delete') ->setDescription("Deletes a configuration option") ->addArgument( 'key', InputArgument::REQUIRED, "The configuration option's name" ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $key = $input->getArgument('key'); $this->config->delete($key); $output->writeln("Successfully deleted config $key"); } }