Project

General

Profile

Actions

Bug #103134

closed

backend:user:create Symfony Command CLI does not recognize short options

Added by Garvin Hicking 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
Start date:
2024-02-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Tested with TYPO3v12 and main (v13), I cannot specify short option commands to the CLI:

./vendor/bin/typo3 backend:user:create -u superadmin -password=MyPassWord-2 -a -m

This instead works:

./vendor/bin/typo3 backend:user:create --username=superadmin --password=MyPassWord-2 --admin --maintainer

The reason is that the typo3/sysext/backend/Classes/Command/CreateBackendUserCommand.php file uses $input->hasParameterOption('--' . $option) which only checks for the long option and not the short option; the method description specifically mentions that short codes are not avaluated.

Actions

Also available in: Atom PDF