addArgument('size', InputArgument::REQUIRED, 'Key size.'); } protected function execute(InputInterface $input, OutputInterface $output): int { $size = (int) $input->getArgument('size'); $args = $this->getOptions($input); if ($size < 1) { throw new InvalidArgumentException('Invalid size'); } $jwk = JWKFactory::createRSAKey($size, $args); $this->prepareJsonOutput($input, $output, $jwk); return self::SUCCESS; } }