Skip to main content

parse

Function parse 

Source
pub fn parse<I>(args: I) -> Result<Command, String>
where I: IntoIterator, I::Item: Into<String>,
Expand description

Read the command line.

args excludes the program name. Both --flag value and --flag=value are accepted.

ยงErrors

A flag that is unknown, missing its value, or given a value that does not parse. The message says which.