public static function addFormatOption(InputDefinition $definition) { $description = 'The output format ("table", "csv", or "tsv")'; $option = new InputOption('format', null, InputOption::VALUE_REQUIRED, $description, 'table'); $definition->addOption($option); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('domain:get')->setDescription('Show detailed information for a domain')->addArgument('name', InputArgument::OPTIONAL, 'The domain name')->addOption('property', 'P', InputOption::VALUE_REQUIRED, 'The domain property to view'); Table::addFormatOption($this->getDefinition()); PropertyFormatter::configureInput($this->getDefinition()); $this->addProjectOption(); }