rev-parse: fix potential bus error with --parseopt option spec handling