addArgument('curve', InputArgument::REQUIRED, 'Curve of the key.'); } protected function execute(InputInterface $input, OutputInterface $output): int { $curve = $input->getArgument('curve'); if (! is_string($curve)) { throw new InvalidArgumentException('Invalid curve'); } $args = $this->getOptions($input); $jwk = JWKFactory::createECKey($curve, $args); $this->prepareJsonOutput($input, $output, $jwk); return self::SUCCESS; } }