protected function execute(InputInterface $input, OutputInterface $output) { $writer = $this->getProfileWriter($input); $group = $input->getArgument('group'); $category = $input->getOption('with-category'); $object = $input->getOption('with-object'); if (\Tiki_Profile_Installer::exportGroup($writer, $group, $category, $object)) { $writer->save(); } else { $output->writeln("<error>Group '{$group}' not found.</error>"); } }