input(); $args = $input->getArguments(); $options = $input->getOptions(); foreach ($options as $name => $value) { if (is_string($value)) { $replaced = StringUtils::replaceTilde($value, $this->getConfig()->home()); if ($value != $replaced) { $input->setOption($name, $replaced); } } } foreach ($args as $name => $value) { if (is_string($value)) { $replaced = StringUtils::replaceTilde($value, $this->getConfig()->home()); if ($value != $replaced) { $input->setArgument($name, $replaced); } } } } }