Skip to main content

parse_args

Function parse_args 

Source
pub fn parse_args<I, S>(args: I) -> Result<Invocation, String>
where I: IntoIterator<Item = S>, S: Into<String>,
Expand description

Parse the command line arguments, excluding the program name.

Returns the usage message as the error when an argument is unknown, missing its value, or repeated in a conflicting way.