To determine the x-intercept, we set y = 0 and solve for x:
[tex]\begin{gathered} -x+y=-2 \\ -x+0=-2 \\ -x=-2 \\ \text{ Multiply by -1 from sides of the equation} \\ \boldsymbol{x=2} \end{gathered}[/tex]Therefore, the x-intercept of the given function is the ordered pair (2,0).
Similarly, to determine the y-intercept, we set x = 0 and solve for y:
[tex]\begin{gathered} -x+y=-2 \\ 0+y=-2 \\ \boldsymbol{y=-2} \end{gathered}[/tex]Therefore, the y-intercept of the given function is the ordered pair (0,-2).