Fixed a boundary-case bug where the existence of argv[++i] wasn't being checked; e.g. if -something string was expected but only -something was supplied