getopt() sorta checks what flags are passed in. Still quite buggy :o