/** * Complete the value for the given option if a value completion is availble * * @param InputOption $option * @return array|false */ protected function completeOption(InputOption $option) { if ($helper = $this->getCompletionHelper($option->getName(), Completion::TYPE_OPTION)) { return $helper->run(); } if ($this->command instanceof CompletionAwareInterface) { return $this->command->completeOptionValues($option->getName(), $this->context); } return false; }