Skip to main content

parse

Function parse 

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

Parse args (everything after the program name) into a Cli.

Returns Err only for hard syntax errors (e.g. an option missing its required value); soft problems become Cli::warnings.