/** * Validate current input. */ public function validate() { if (count($this->argument->all()) < $this->definition->getNumberOfRequiredArgument()) { throw new ShowHelpException(sprintf('Not enough arguments.')); } }