protected function getCommandName(InputInterface $input)
    {
        if ($input->getFirstArgument() === null && !$input->hasParameterOption(array('--help', '-h'))) {
            $this->isDefault = true;
            return $this->getDefaultCommandName();
        }
        return parent::getCommandName($input);
    }
protected function getCommandName(InputInterface $input)
    {
        if ($input->getFirstArgument() === null && !$input->hasParameterOption(array('--help', '-h'))) {
            $this->isDefault = true;
            return $this->getDefaultCommandName();
        }
        return parent::getCommandName($input);
    }
protected function getCommandName ( InputInterface $ input ) { if ( $ input -> getFirstArgument ( ) === null && ! $ input -> hasParameterOption ( array ( '--help' , '-h' ) ) ) { $ this -> isDefault = true ; return $ this -> getDefaultCommandName ( ) ; } return parent :: getCommandName ( $ input ) ; }
Gets the name of the command based on input.

@param InputInterface $input The input interface

@return string The command name
Gets the name of the command based on input .