Issue Bug Closed

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

Garvin Hicking 02/16/24, 16:17 updated 07/09/24, 15:33

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.

Reviews 2