Add a parseopt mode to git-rev-parse to bring parse-options to shell scripts.