2 namespace Consolidation\AnnotatedCommand\Options;
4 use Consolidation\AnnotatedCommand\Parser\CommandInfo;
5 use Symfony\Component\Console\Input\InputOption;
8 * Option providers can add options to commands based on the annotations
9 * present in a command. For example, a command that specifies @fields
10 * will automatically be given --format and --fields options.
12 * @see AnnotatedCommandFactory::addListener()
13 * @see HookManager::addOptionHook()
15 interface AutomaticOptionsProviderInterface
18 * @return InputOption[]
20 public function automaticOptions(CommandInfo $commandInfo);