Skip to main content

parse

Function parse 

Source
pub fn parse(
    program: &str,
    table: &[Option_],
    raw: Vec<String>,
) -> Result<Parsed, (String, i32)>
Expand description

Splits a command line against an option table.

program appears in the error messages, which are the reference’s own wording. An error carries the exit code to use with it, because the two are one decision: an unknown option is 1, a missing argument is 2.