Bug #103134
closedbackend:user:create Symfony Command CLI does not recognize short options
100%
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.
Updated by Gerrit Code Review 3 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83018
Updated by Gerrit Code Review 3 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83018
Updated by Gerrit Code Review 2 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83018
Updated by Gerrit Code Review 2 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83376
Updated by Garvin Hicking 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f05072a262664d7d40666106f1f8934db3b253f6.