Skip to main content

parse_actions

Function parse_actions 

Source
pub fn parse_actions(
    specs: &[String],
    choices: &[String],
    default_run: &str,
) -> Result<BTreeMap<String, ChoiceAction>>
Expand description

Parse every --action value against the offered choices, refusing a label the question does not offer (it could never fire).