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