For an arbitrary $z\neq0$, the principal value of $\arg z$ is defined to be the unique value that satisfies $-\pi<\arg z\le\pi$ (well we can define it over any interval of length $2\pi$, in your case we stick to the interval $(-\pi,\pi ]$) and it is usually denoted by $\mathrm{Arg}(z)$. Thus the relation between $\arg z$ and $\mathrm{Arg}(z)$ is given by
$$\arg z=\mathrm{Arg}(z) +2k\pi,\;\;\;k\in\Bbb Z$$
You can deduce the following starting from the relation between Cartesian and the Polar form,
$$\mathrm{Arg}(z) =
\begin{cases}
\tan^{-1}\left(y/x \right), & \text{if $x>0$} \\[2ex]
\pi+\tan^{-1}\left(y/x \right), & \text{if $x<0,y\ge0$} \\[2ex]
-\pi+\tan^{-1}\left(y/x \right), & \text{if $x<0,y<0$} \\[2ex]
\pi/2 , & \text{if $x=0,y>0$} \\[2ex]
-\pi/2 , & \text{if $x=0,y<0$}
\end{cases}$$
That's all you need to know before starting to solve the problem.
====================================================================
Let's start with showing, $\lim_{\substack{z\rightarrow -a \\ \Im(z)\geq 0 }}\mathrm{Arg}(z) = \pi$
Here $-a$ lies on the negative part of the real axis.
Let $z=x+iy\;\;,x,y\in\Bbb R$
As $z\to -a$ with the condition $\Im(z)\geq 0 \implies x\to -a,y\to 0$ with $y\ge 0$, that is we approach $-a$ from the upper half of the plane.
Hence by second case among values of $\mathrm{Arg}(z)$,
$$\lim_{\substack{z\rightarrow -a \\ \Im(z)\geq 0 }}\mathrm{Arg}(z) = \lim_{\substack{(x,y)\rightarrow (-a,0) \\ y\geq 0 }}\mathrm{Arg}(x,y) = \lim_{\substack{(x,y)\rightarrow (-a,0) \\ y\geq 0 }}\pi+\tan^{-1}\left(y/x \right)=\pi$$
Secondly for showing, $\lim_{\substack{z\rightarrow -a \\ \Im(z) < 0}}\mathrm{Arg}(z) = -\pi$, you can follow similar arguments but in this case we have $\Im(z) < 0$. So as $z\to-a$, we approach $-a$ from the lower half of the plane, that is with $y<0$. Hence we use the third case among the values of $\mathrm{Arg}(z)$.