fix(ConvertType): Read hostname from arguments and not options

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-01-29 11:50:53 +01:00
parent cf5d55edb7
commit d8cc8aae1a
No known key found for this signature in database

View file

@ -236,7 +236,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
}
// parse hostname for unix socket
if (preg_match('/^(.+)(:(\d+|[^:]+))?$/', $input->getOption('hostname'), $matches)) {
if (preg_match('/^(.+)(:(\d+|[^:]+))?$/', $input->getArgument('hostname'), $matches)) {
$connectionParams['host'] = $matches[1];
if (isset($matches[3])) {
if (is_numeric($matches[3])) {