Logic bug for parsing.
This is really annoying.
Should probably just write this myself instead of using getopt.h