function ConsoleInputCollector::configureCommand
Configures a console command to support the `--input` option.
This should be called by a command's configure() method.
Parameters
\Symfony\Component\Console\Command\Command $command: The command being configured.
1 call to ConsoleInputCollector::configureCommand()
- RecipeCommand::configure in core/
lib/ Drupal/ Core/ Recipe/ RecipeCommand.php
File
-
core/
lib/ Drupal/ Core/ Recipe/ ConsoleInputCollector.php, line 42
Class
- ConsoleInputCollector
- Collects input values for recipes from the command line.
Namespace
Drupal\Core\RecipeCode
public static function configureCommand(Command $command) : void {
$command->addOption(static::INPUT_OPTION, 'i', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, sprintf('An input value to pass to the recipe or one of its dependencies, in the form `--%s=RECIPE_NAME.INPUT_NAME=VALUE`.', static::INPUT_OPTION), []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.