Skip to main content

parse_script_args

Function parse_script_args 

Source
pub fn parse_script_args(
    view: &ScriptView<'_>,
    raw: &[String],
) -> HashMap<String, String>
Expand description

Parse user-supplied script arguments. Supports two styles, freely mixed:

  • key=value — explicit named argument.
  • value — positional, mapped to the script’s args definition by index.