Mercurial > hg > isophonics-drupal-site
view vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Consolidation\AnnotatedCommand\Options; use Consolidation\AnnotatedCommand\Parser\CommandInfo; use Symfony\Component\Console\Input\InputOption; /** * Option providers can add options to commands based on the annotations * present in a command. For example, a command that specifies @fields * will automatically be given --format and --fields options. * * @see AnnotatedCommandFactory::addListener() * @see HookManager::addOptionHook() */ interface AutomaticOptionsProviderInterface { /** * @return InputOption[] */ public function automaticOptions(CommandInfo $commandInfo); }