I have a series of problems in which I have to find a continuous function that agrees with certain conditions, but I fail to see how to even start thinking about such functions. I will provide an example: for $D=\mathbb{C}\backslash\left\{ \left(2+i\right)t\,\,\,:\,\,\,-1\leq t\leq1\right\} $ I need $f:D\to \mathbb C$ s.t: $$ \left(f\left(z\right)\right)^{2}=\left(z-\left(2+i\right)\right)\left(z+\left(2+i\right)\right)$$ and $$f\left(-2+i\right)=2-2i$$ My problem is with the discontinuity of $Arg(z)$ around $z=-1$, so complex numbers just above the $Re(z)<0$ line go from $\approx \pi$ to $\pi/2$, but complex number below go from $\approx -\pi$ to $-\pi/2$ and $e^{i\pi/2} \neq e^{-i\pi/2}$. How can I resolve this issue with these square functions? I don't even see how the definition of $D$ helps me.
please excuse me if this question is too "basic" for this tagging, I found nowhere else to get a clue how to proceed. I don't need or want you to fully solve this, just a clue please