Actions
Bug #103134
closedbackend:user:create Symfony Command CLI does not recognize short options
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