Skip to main content

parse

Function parse 

Source
pub fn parse(arguments: &[String]) -> Result<Selections, AnswerError>
Expand description

Read repeatable --set arguments into selections.

Splitting on the first = is deliberate: a value may carry one, and a path frequently does.

ยงErrors

AnswerError for an argument that is not a pair and for a decision answered twice. Whether the decision exists and accepts the answer is validate, because that needs the plan the answers are for.