_context: refactor, extract _node_get_option_str
Use a new helper function to simplify working with nodes that can only accept certain strings. This will be used when adding the prompt.* config options. In later work we can see if this function would be useful elsewhere, and could be added to '_yaml.py'.
Showing with 29 additions and 8 deletions