update-index: migrate to parse-options API