read-tree: migrate to parse-options