protected function getCommandName(InputInterface $input) { return $this->singleCommand ? $this->defaultCommand : $input->getFirstArgument(); }
/** * @param InputInterface $input L'interface de saisie * * @return string */ protected function getCommandName(InputInterface $input) { if (null !== $this->commandName) { return $this->commandName; } return parent::getCommandName($input); }