protected function validateInput(InputInterface $input, OutputInterface $output, $envNotRequired = null) { if (!parent::validateInput($input, $output)) { return false; } $this->domainName = $input->getArgument('name'); if (empty($this->domainName)) { $output->writeln("<error>You must specify the name of the domain.</error>"); return false; } else { if (!$this->validDomain($this->domainName)) { $output->writeln("<error>You must specify a valid domain name.</error>"); return false; } } $this->certPath = $input->getOption('cert'); $this->keyPath = $input->getOption('key'); $this->chainPaths = $input->getOption('chain'); if ($this->certPath || $this->keyPath || $this->chainPaths) { return $this->validateSslOptions(); } return true; }