configureInput() public static method

Add options to a command's input definition.
public static configureInput ( Symfony\Component\Console\Input\InputDefinition $definition )
$definition Symfony\Component\Console\Input\InputDefinition
 /**
  * {@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();
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('subscription:info')->addArgument('property', InputArgument::OPTIONAL, 'The name of the property')->setDescription('Read subscription properties');
     PropertyFormatter::configureInput($this->getDefinition());
     Table::addFormatOption($this->getDefinition());
     $this->addProjectOption();
     $this->addExample('View all subscription properties')->addExample('View the subscription status', 'status')->addExample('View the storage limit (in MiB)', 'storage');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('environment:info')->addArgument('property', InputArgument::OPTIONAL, 'The name of the property')->addArgument('value', InputArgument::OPTIONAL, 'Set a new value for the property')->addOption('refresh', null, InputOption::VALUE_NONE, 'Whether to refresh the cache')->setDescription('Read or set properties for an environment');
     PropertyFormatter::configureInput($this->getDefinition());
     Table::addFormatOption($this->getDefinition());
     $this->addProjectOption()->addEnvironmentOption()->addNoWaitOption();
     $this->addExample('Read all environment properties')->addExample("Show the environment's status", 'status')->addExample('Show the date the environment was created', 'created_at')->addExample('Enable email sending', 'enable_smtp true')->addExample('Change the environment title', 'title "New feature"')->addExample("Change the environment's parent branch", 'parent sprint-2');
     $this->setHiddenAliases(['environment:metadata']);
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('project:info')->addArgument('property', InputArgument::OPTIONAL, 'The name of the property')->addArgument('value', InputArgument::OPTIONAL, 'Set a new value for the property')->addOption('refresh', null, InputOption::VALUE_NONE, 'Whether to refresh the cache')->setDescription('Read or set properties for a project');
     PropertyFormatter::configureInput($this->getDefinition());
     Table::addFormatOption($this->getDefinition());
     $this->addProjectOption()->addNoWaitOption();
     $this->addExample('Read all project properties')->addExample("Show the project's Git URL", 'git')->addExample("Change the project's title", 'title "My project"');
     $this->setHiddenAliases(['project:metadata']);
 }