Skip to main content

parse

Function parse 

Source
pub fn parse(spec: &ArgsSpec, args: &[String]) -> Result<ParsedArgs, String>
Expand description

Parse argv against a spec. args[0] is the program name and is ignored.

Returns a human-readable error string on failure. The caller prints it to stderr and exits with a non-zero code (see super::parse_or_schema).