Here is the problem 1-8 in Lee's introduction to smooth manifolds:
An angle function on a subset $U \subset S^1$ is a continuous function $ \theta: U\to \mathbb R$ such that $e^{i\theta(z)}=z$ for all $z \in U$. Show that there exists an angle function on an open subset $U\subset S^1$ if and only if $U \neq S^1.$ For any such angle function, show that $(U,\theta)$ is a smooth coordinate chart for $S^1$ with its standard smooth structure.
I wonder if $U\ne S^1$ is sufficient for the existence of such a continuous angle function(I feel that the statement should be "there exists an angle function on an open subset $U\subset S^1$ if and only if $U$ is not dense in $S^1.$").
Let's take a special case when $U=S^1-\{-1\}$. Suppose there is such a continuous angle function $ \theta: U\to \mathbb R$ such that $e^{i\theta(z)}=z$ for all $z \in U$. Then we must have $\theta(z)=arg(z)+2k\pi$. However, It seems that there will always be a "jump" somewhere on the circle making $\theta$ discontinuous. For example, if we define $\theta(z)=\arg(z)$, then when $z$ approaches $-1$ from the first quadrant and the four quadrant separately, $\theta(z)$ approaches to $\pi$ or $-\pi$.(This argument turns out to be wrong, see the answers and comments given below by repliers)
Since professor Lee doesn't make any corrections to this problem, it should be correct as given. But how to define such a continuous angle function for arbitrary proper open subset of $S^1$? Thanks in advance!