-h, -i, -r, and -u flags function correctly