refactor: add recipe_parse_options, move --stage to it